Лучшая репортинг тулза для сборки Maven+WebDriver+TestNG

ну версию конечно надо учитывать,

в общем кину еще ссылку на описание возможных элементов, которые можно использовать

http://maven.apache.org/surefire/maven-surefire-report-plugin/report-mojo.html#reportsDirectory

я не думаю, что это не рабочий вариант, просто неизвестно какой у вас проект и какие зависимости

если бы он не был рабочим, его не использовали, а тем более бы не включали в поставку

например, https://github.com/khmarbaise/maui/issues/2

просто если, какие-то условия его использования, вот и все

выходной файл задается через property outputDir, вот пример, только надо его попробовать

у меня пока, что нет настроенного енвиронмента, так что отпишитесь, получилось или нет

 

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.5</version>
    <configuration>
        <systemPropertyVariables>
            <org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>
        </systemPropertyVariables>
        <properties>
            <property>
                <name>usedefaultlisteners</name>
                <value>false</value>
            </property>
            <property>
               <name>listener</name>
               <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
            </property>
            <property>
               <name>outputDir</name>
               <value>target/surefire-reports/html</value>
            </property>
        </properties>
        <workingDirectory>target/surefire-reports/html/</workingDirectory>
        <suiteXmlFiles>
            <suiteXmlFile>testconfig/testAll.xml</suiteXmlFile>
        </suiteXmlFiles>
    </configuration>
</plugin>

 

<property>
<name>outputDir</name>
<value>target/surefire-reports/html</value>
</property>
 
Не работает( но работает
<reportsDirectory> ${project.build.directory}/myreports </reportsDirectory>
Но переопределяется калолог всего surefire-reports

 

Добрый день, прочитавши все равно не могу разобраться почему мой POM.XML  файл для MAVEN не работает

хочу подключить красивый ReportNG http://reportng.uncommons.org/ к  проекту

Может, зависимости не правильно выставлены?

привожу пример файла ниже

 

    <dependencies>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>2.32.0</version>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.uncommons</groupId>
            <artifactId>reportng</artifactId>
            <version>1.1.2</version>
            <scope>test</scope>
            <exclusions>
            <exclusion>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
            </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <systemPropertyVariables>
                        <org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>
                    </systemPropertyVariables>
                    <properties>
                        <property>
                            <name>usedefaultlisteners</name>
                            <value>false</value>
                        </property>
                        <property>
                            <name>listener</name>
                            <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
                        </property>
                        <property>
                            <name>outputDir</name>
                            <value>target/surefire-reports/html</value>
                        </property>
                    </properties>
<!--                     <workingDirectory>target/surefire-reports/html/</workingDirectory> -->
                    <reportsDirectory>target/surefire-reports/html</reportsDirectory>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng-suite.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
            </plugin>
        </plugins>
    </build>

при запуске выдает exception

 

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException:
Cannot load class from file: class org.uncommons.reportng.HTMLReporter; nested exception is org.testng.TestNGException:
Cannot load class from file: class org.uncommons.reportng.HTMLReporter
org.testng.TestNGException:
Cannot load class from file: class org.uncommons.reportng.HTMLReporter
        at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:522)
        at org.testng.TestNG.configure(TestNG.java:1452)
        at org.testng.TestNG.configure(TestNG.java:1620)

 

Парни, подскажите, а есть что-то подобное для JUnit?
Чтобы взять и засандалить в отчёт JUnit ссылки на скриншоты?..

Мне ничего в голову не приходит кроме, Maven Surefire Report Plugin или антовского JUnitReport task. К сожалению, JUnit в этом плане обделен.

Это хороший повод задуматься над тем, чтобы сделать такой небольшой проект, ведь JUnit тоже очень распространен.

Коллеги всем привет!
Почему-то не подгружается Suite xml вроде все прописано, в отладке есть.

Кусок конфига.

org.apache.maven.plugins maven-surefire-plugin 2.5
                    <systemPropertyVariables>
                        <org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>
                    </systemPropertyVariables>
                    <properties>
                        <property>
                            <name>usedefaultlisteners</name>
                            <value>false</value>
                        </property>
                        <property>
                            <name>listener</name>
                            <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
                        </property>
                        <!--<property>
                            <name>outputDir</name>
                            <value>target/surefire-reports/html</value>
                        </property>-->
                    </properties>
                    <!--<workingDirectory>target/surefire-reports/html/</workingDirectory>-->

                    <suiteXmlFiles>
                        <suiteXmlFile>src/Dev.xml</suiteXmlFile>
                        
                    </suiteXmlFiles>
                </configuration>


                <!--<dependencies>
                    &lt;!&ndash; https://mvnrepository.com/artifact/org.aspectj/aspectjweaver &ndash;&gt;
                    <dependency>
                        <groupId>org.aspectj</groupId>
                        <artifactId>aspectjweaver</artifactId>
                        <version>${aspectj.version}</version>
                    </dependency>
                </dependencies>-->
            </plugin>