UsageBefore you start you have to: Define dependencies in TestNG 5.5 <project>
[...]
<dependencies>
[...]
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.5.m</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
[...]
</dependencies>
[...]
</project>Note the "m" in the version tag. Disable the surefire plugin <build>
[...]
<plugins>
[...]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3</version>
<configuration>
<!-- SKIP!!! we use TestNG plugin -->
<skip>true</skip>
</configuration>
</plugin>
[...]
</plugins>
</build>
|
||