ExamplesHere are some examples of available configurations: Example 1: Change default reports directory <plugin>
<groupId>org.jfrog.jade.plugins.build</groupId>
<artifactId>jade-testng-plugin</artifactId>
<version>1.3.X</version>
<configuration>
<skip>false</skip>
<haltonfailure>false</haltonfailure>
<reportsDir>
${project.build.directory}/testng-reports
</reportsDir>
<dumpcommand>false</dumpcommand>
<verbose>1</verbose>
<suitename>
${project.groupId}-${project.artifactId}
</suitename>
<groups>fast,mid</groups>
<excludedgroups>slow</excludedgroups>
<junit>false</junit>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin> Example 2: Use testng.xml files <plugin>
<groupId>org.jfrog.jade.plugins.build</groupId>
<artifactId>jade-testng-plugin</artifactId>
<version>1.3.X</version>
<configuration>
<skip>false</skip>
<haltonfailure>false</haltonfailure>
<reportsDir>
${project.build.directory}/testng-reports
</reportsDir>
<dumpcommand>false</dumpcommand>
<verbose>1</verbose>
<excludedgroups>fast</excludedgroups>
<junit>false</junit>
<suiteXmls>
<suiteXml>testng.xml</suiteXml>
<suiteXml>testng1.xml</suiteXml>
</suiteXmls>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>Example 3: Skip tests <plugin>
<groupId>org.jfrog.jade.plugins.build</groupId>
<artifactId>jade-testng-plugin</artifactId>
<version>1.3.X</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin> |
|||