Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1109

Unit test failure during Clover2 custom lifecycle do not fail builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 3.1.10
    • 3.1.6
    • Maven plugin
    • 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.

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            2a8044937dda Baron Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: