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>元素。