maven 跳过测试用例

来源:互联网 发布:淘宝上的美瞳能买吗 编辑:程序博客网 时间:2024/05/17 05:04

Skipping Unit Tests

跳过测试用例

You may want to configure Maven to skip unit tests altogether. Maybe you have a very large system
where the unit tests take minutes to complete and you don’t want to wait for unit tests to complete before
producing output. You might be working with a legacy system that has a series of failing unit tests, and
instead of fixing the unit tests, you might just want to produce a JAR. Maven provides for the ability to
skip unit tests using the skip parameter of the Surefire plugin. To skip tests from the command-line,
simply add the maven.test.skip property to any goal:
$ mvn install -Dmaven.test.skip=true


如果你想配置maven 跳过所有测试用例,或者你有一个很大的项目,但不想等待那漫长的测试用例执行,


-Dmaven.test.skip=true

0 0
原创粉丝点击