Maven Failsafe Plugin用于集成测试
1 | |
1 | |
QA
what is the different between maven-surefire-plugin and mave-failsafe-plugin?
-
maven-surefire-pluginis designed for running unit tests and if any of the tests fail then it will fail the build immediately. -
maven-failsafe-pluginis designed for running integration tests, and decouples failing the build if there are test failures from actually running the tests.The name “failsafe” was chosen both because it is a synonym of surefire and because it implies that when it fails, it does so in a safe way.
The Failsafe Plugin has two goals:
failsafe:integration-testruns the integration tests of an application,failsafe:verifyverifies that the integration tests of an application passed.