« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9692621 建立时间:2004年12月20日 |

| |
[软件项目管理]maven中单元测试的处理 原创空间, 文章收藏, 软件技术, 电脑与网络
邢红瑞 发表于 2008/8/22 19:14:18 |
使用maven中,如果单元测试失败了,maven就会停止build最终的jar和war文件,如果这个单元测试是可以忽略的,可以使用Surefire plugin处理。pom中加入<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><testFailureIgnore>true</testFailureIgnore></configuration></plugin></plugins></build>
如果跳过单元测试测试
<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><skip>true</skip></configuration></plugin></plugins></build> |
|
回复:maven中单元测试的处理 原创空间, 文章收藏, 软件技术, 电脑与网络
pipilu(游客)发表评论于2008/11/13 20:38:55 |
如果想忽略单元测试,可以在后面加上-Dmaven.test.skip=true:mvn install -Dmaven.test.skip=true |
|
» 1 »
|