Details
-
Bug
-
Resolution: Fixed
-
High
-
3.1.6
-
None
Description
The Maven Clover2 plugin creates a custom lifecycle. When the unit tests are run in that lifecycle the build will not fail if there are test failures. This is because the lifecycle.xml file forces the Surefire plugin's testFailureIgnore configuration property to false. This is especially problematic in Jenkins builds where unit tests should fail the build (rather than allowing them to be unstable). Please remove this configuration or replace it with a mechanism that can be set in the POM.
The file in question is src/main/resources/META-INF/maven/lifecycle.xml. See the related Answers discussion.