<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>
http://people.apache.org/repo/m2-snapshot-repository/
</url>
</pluginRepository>
</pluginRepositories>
</dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.5</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
|
经测试这种方法可以正常运行。
其他几种方法:
其他的方法没有测试过,因为现在只是简单的用例还没有涉及太多。以后再试。
参考这个吧。http://maven.apache.org/plugins/maven-surefire-plugin/testng.html
最新内容请见作者的GitHub页:http://qaseven.github.io/