Skipped tests not appearing properly in chart

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: tap-plugin
    • None
    • Environment:
      TAP 1.2.1, Jenkins 1.4.29

      I've set up a simple job to test out the TAP plugin, but it looks like skipped tests aren't being reported as shown on the plugin's wiki page. If I run this:

      perl -MTest::More=no_plan -e '
          ok(1, q{PASS});
          is(0, 1, q{FAIL});
          SKIP: {
              skip q{SKIP test}, 1 if 1;
              ok(1, q{SKIP});
          }
          TODO: {
              local $TODO = q{TODO test};
              ok(0, q{TODO});
          }
      ' > results.tap
      

      That gives results.tap:

      ok 1 - PASS
      not ok 2 - FAIL
      ok 3 # skip SKIP test
      not ok 4 - TODO # TODO TODO test
      #   Failed (TODO) test 'TODO'
      #   in -e at line 10.
      1..4
      

      However, the skipped test shows with no Description and just a plain green result.

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

              Created:
              Updated:
              Resolved: