Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-672

Failsafe no longer fails builds due to broken failsafe-summary.xml file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • Maven Failsafe Plugin
    • None

    Description

      Upgrading maven-failsafe-plugin from version 2.6 to 2.7 causes builds with integration test errors to be reported as successful.

      From my understanding, the failsafe verify goal uses the summary file (default: target\failsafe-reports\failsafe-summary.xml) to check whether executed integration tests passed or had any errors. I've pasted the content of this file below as it is generated by the failsafe plugin version 2.6 and 2.7 respectively for the same build with the same integration test errors. It appears that the integration-test goal does not generate this file correctly in version 2.7.

      failsafe plugin v2.6: failsafe-summary.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <failsafe-summary result="255" />
      
      failsafe plugin v2.7: failsafe-summary.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <failsafe-summary />
      

      The result for this build is that the failsafe plugin version 2.6 fails the build (as it should) while failsafe plugin version 2.7 does not and the build is reported as successful.

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              janwe Jan Fredrik Wedén
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: