<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="SuiteName" verbose="1" >
<test name="TestName1" >
<classes>
<class name="NoPackageTest" />
</classes>
</test>
<test name="TestName2">
<classes>
<class name="test.sample.ParameterSample"/>
<class name="test.sample.ParameterTest"/>
</classes>
</test>
</suite>
有人可以告诉我如何在maven-surefire-plugin中指定SuiteName,TestName1和TestName2。
提前致谢
答案 0 :(得分:0)
足以设置surefire来运行你的套件,然后运行所属的测试类,你可以通过配置如下来实现
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<includes>
<include>**/SuiteName.java</include>
</includes>
</configuration>
</plugin>