maven :: run only single test in multi-module project

后端 未结 3 944
忘掉有多难
忘掉有多难 2021-01-30 03:39

Is there any way to provide some command-line argument in order to skip all tests but one on some module? So I will not need to change pom.xml every time I will need to run anot

3条回答
  •  失恋的感觉
    2021-01-30 04:23

    In case the module to be tested depends on other projects, solution works by changing commands as:

    mvn test -DfailIfNoTests=false -Dtest=testname -pl subproject
    

提交回复
热议问题