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

Provide a `junit` step for archiving test results

      Currently there is no junit step which would make adding test reports much easier than this ugly mess

      Instead of:

      step([$class: 'JUnitResultArchiver', healthScaleFactor: 20.0, testResults: '**/target/surefire-reports/*.xml'])
      

      Something like:

      junit '**/target/surefire-reports/*.xml'
      
      /* or */
      
      junit results: '**/target/surefire-reports/*.xml', healthScale: 20.0, retainStandardError: true
      

          [JENKINS-34148] Provide a `junit` step for archiving test results

          Wouldn't it make more sense to add a xunit step? It would clutter the list of steps quite a lot if there was a separate step for every supported format of the plugin. Or do I understand the relation between the jUnit and xUnit plugins wrong?

          Ing. Christoph Obexer added a comment - Wouldn't it make more sense to add a xunit step? It would clutter the list of steps quite a lot if there was a separate step for every supported format of the plugin. Or do I understand the relation between the jUnit and xUnit plugins wrong?

          R. Tyler Croy added a comment -

          There is now a junit step (Pipeline 2.3)

          R. Tyler Croy added a comment - There is now a junit step (Pipeline 2.3)

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: