Option `showOnlyFailures` is dimissed with mutliple TapPublisher steps

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: tap-plugin
    • None

      The showOnlyFailures Option is dismissed if multiple TapPublisher steps exist in a pipeline:

      pipeline {
          agent any
          stages {
              stage('Build') {
                  steps {
                      writeFile file: 'test1.tap', text: 'ok 1\nnot ok 2'
                      writeFile file: 'test2.tap', text: 'ok 1\nnot ok 2'
                  }
                  post {
                      always {
                          step $class: 'TapPublisher', testResults: 'test1.tap', showOnlyFailures: true, planRequired: false
                          step $class: 'TapPublisher', testResults: 'test2.tap', showOnlyFailures: true, planRequired: false
                      }
                  }
              }
          }
      }
      

      This pipeline serves for demonstration purposes only, in this simple case a single TapPublisher step could be used. Usually the two TapPublisher steps would be in seperate stages.

      It's expected that the "TAP Extended Test Results" would contain only failures, but they include all test cases.

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: