Powered by:
SourceForge.net Built by Maven
Sponsored by:
AlphaCSP

Examples

Here are some examples of available configurations:

Example 1:

Change default reports directory
Change suite name
Define include and excluced groups\

    <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
Define excluded groups

    <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>