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

TAP plugin: enable detailed output for TAP with subtests

    XMLWordPrintable

Details

    Description

      I use Jenkis TAP plugin to process output generated by Node.js modules.

      There TAP subtest feature is used quite heavily. Unfortunately, TAP plugin does not provide detailed information on sub-tests and also does not include sub-test count in the total test number.

      I have submitted a pull-request to fix this by introducing a new TAP plugin configuration option: https://github.com/jenkinsci/tap-plugin/pull/9

      Going to attach an example data, where the "Flatten TAP output" feature has been used, to depict the effect on presented result.

      Attachments

        Activity

          ajferrigno AJ Ferrigno added a comment -

          I would love to see this feature as well. I have started using this plug-in, and subtests would make the resulting output more readable. However, if we cannot drill into the subtests, the feature is sort of meaningless. I tried checking the "Enable Subtests" checkbox, but that seemed to have no effect.

          ajferrigno AJ Ferrigno added a comment - I would love to see this feature as well. I have started using this plug-in, and subtests would make the resulting output more readable. However, if we cannot drill into the subtests, the feature is sort of meaningless. I tried checking the "Enable Subtests" checkbox, but that seemed to have no effect.

          Tested locally. All looks good. Used the following TAP stream:

          1..2
          ok 1
              1..3
              not ok 1
              ok 2
              ok 3 # TODO
          ok 2
          
          kinow Bruno P. Kinoshita added a comment - Tested locally. All looks good. Used the following TAP stream: 1..2 ok 1 1..3 not ok 1 ok 2 ok 3 # TODO ok 2

          Two first attachments before enabling the flat option under advanced. Two after that. Looks good. Merging manually now.

          kinow Bruno P. Kinoshita added a comment - Two first attachments before enabling the flat option under advanced. Two after that. Looks good. Merging manually now.

          Merged, tested locally. Looking good!

          kinow Bruno P. Kinoshita added a comment - Merged, tested locally. Looking good!

          Included in the Wiki release notes for 2.0 https://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin

          Thanks japod

          kinow Bruno P. Kinoshita added a comment - Included in the Wiki release notes for 2.0 https://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin Thanks japod

          2.0 released

          kinow Bruno P. Kinoshita added a comment - 2.0 released

          People

            kinow Bruno P. Kinoshita
            japod Jakub Podlesak
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: