您的位置:首页 > 其它

maven test需要配置maven-surefire-plugin和maven-surefire-report-plugin插件

2014-06-11 09:09 633 查看
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/java/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.17</version>
<reportSets>
<reportSet>
<reports>
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>


参考:http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html

http://maven.apache.org/surefire/maven-surefire-report-plugin/usage.html

欢迎光临娇娇家的美衣阁 http://shop105984718.taobao.com/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: