Is there a way to “fail fast” for junit with the maven surefire plugin?

后端 未结 7 1109
春和景丽
春和景丽 2020-11-28 08:39

I\'m currently working on a java project using maven. We use the maven surefire plugin to run our junit suite as part of the build process.

Our test suite is rapidl

7条回答
  •  猫巷女王i
    2020-11-28 09:12

    You can run maven with --fail-fast option:

    The -ff option is very useful for developers running interactive builds who want to have rapid feedback during the development cycle.

    an example can be:

    mvn clean test -ff

    http://books.sonatype.com/mvnref-book/reference/running-sect-options.html

提交回复
热议问题