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

Provide a `junit` step for archiving test results

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      

        Attachments

          Activity

          Hide
          cobexer 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?

          Show
          cobexer 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?
          Hide
          rtyler R. Tyler Croy added a comment -

          There is now a junit step (Pipeline 2.3)

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

            People

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

              Dates

              Created:
              Updated:
              Resolved: