What is the difference between the Maven Surefire and Maven Failsafe plugins?

前端 未结 3 1976
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 02:55

What is the difference between Maven Surefire and Maven Failsafe plugins?
I have searched all over web, but did not get the answer.

3条回答
  •  时光取名叫无心
    2020-12-23 03:15

    In my country its the second google result when searching for "maven failsafe maven surefire" to get to this FAQ: Difference between maven-failsafe-plugin and maven-surefire-plugin which states:

    maven-surefire-plugin is designed for running unit tests and if any of the tests fail then it will fail the build immediately.

    maven-failsafe-plugin is designed for running integration tests, and decouples failing the build if there are test failures from actually running the tests."

提交回复
热议问题