import org.junit.jupiter.api.Test; ¨K31K
$ mvn -Dtest=MavenDemo1Test test
mvn -Dtest=MavenDemo1Test,MavenDemo2Test test
$ mvn -Dtest=MavenDemo*Test test
$ mvn -Dtest=MavenDemo*Test,MavenPackageDemoTest test
$ mvn -Dtest=MavenDemo1Test#test2 test
$ mvn -Dtest=MavenPackageDemoTest#*Test test
复制代码
- $ mvn -Dtest=MavenDemo1Test#test1+test2 test
复制代码
- mvn -Dsurefire.rerunFailingTestsCount=2 test
mvn -Dtest=TestSuite test
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |