Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56044

Merge publishers (junit) with the same filename pattern

XMLWordPrintable

      When a Maven build contains multiple surefire/failsafe steps with the same target directory (which is okay if the tests don't overlap, since those plugins generate unique file names), test results are recorded multiple times:

      [withMaven] junitPublisher - Archive test results for Maven artifact XXX:4.0.0-SNAPSHOT generated by maven-failsafe-plugin:integration-test (default-integration-test): test/target/failsafe-reports/*.xml
      Recording test results
      [withMaven] junitPublisher - Archive test results for Maven artifact XXX:4.0.0-SNAPSHOT generated by maven-failsafe-plugin:integration-test (gui-integration-test): test/target/failsafe-reports/*.xml
      Recording test results
      

      This should be avoided, since it counts every test multiple times. (Maybe this could also be fixed in the junit plugin?)

            cleclerc Cyrille Le Clerc
            tgr Tobias Gruetzmacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: