首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

maven test下令

2013-01-18 
maven test命令test命令总结http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html1、mv

maven test命令

test命令总结
http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html

1、mvn test
mvn test -Dmaven.test.failure.ignore=true:表示使用
<plugin>
??????? <groupId>org.apache.maven.plugins</groupId>
??????? <artifactId>maven-surefire-plugin</artifactId>
??????? <configuration>
????????? <testFailureIgnore>true</testFailureIgnore>
??? <skip>true</skip>
??????? </configuration>
</plugin>
?

a|、如果你希望继续构建项目,即使 Surefire 插件遇到了失败的单元测试,你就需要设置 Surefire 的testFailureIgnore,这个配置属性为 true。


b|、跳过错误的单元测试,并且构建成功,可以使用-Dmaven.test.skip=true和添加<skip>true</skip>元素。

热点排行