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

TAP plugin fails with parse error when tests fail

    Details

    • Similar Issues:

      Description

      When parsing the attached test-report.tap file I get the following error:

      Parsing TAP test result [XXX/builds/2012-11-09_15-24-05/tap-master-files/test-report.tap].
      org.tap4j.parser.ParserException: Error parsing TAP Stream: Missing TAP Plan.
      	at org.tap4j.parser.Tap13YamlParser.parseFile(Tap13YamlParser.java:587)
      	at org.tap4j.plugin.TapParser.parse(TapParser.java:94)
      	at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:240)
      	at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:182)
      	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729)
      	at hudson.model.Run.execute(Run.java:1541)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:236)
      Caused by: org.tap4j.parser.ParserException: Missing TAP Plan.
      	at org.tap4j.parser.Tap13YamlParser.checkTAPPlanIsSet(Tap13YamlParser.java:353)
      	at org.tap4j.parser.Tap13YamlParser.postProcess(Tap13YamlParser.java:736)
      	at org.tap4j.parser.Tap13YamlParser.parseFile(Tap13YamlParser.java:585)
      	... 12 more
      Found matching files but did not find any TAP results.
      

      Its fine when there are no test failures. The TAP file is generated using the Mocha test framework for nodejs. I've tested the output on InstantTap and its fine on there (but that doesn't use the YAML parser??)

        Attachments

        1. screenshot-15791.png
          93 kB
          Bruno P. Kinoshita
        2. test-report.tap
          6 kB
          James Frost

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          This is caused by a bug in tap4j parser. I'll get that fixed ASAP and will cut a new release.

          Thanks for reporting, nice catch :o)
          -B

          Show
          kinow Bruno P. Kinoshita added a comment - This is caused by a bug in tap4j parser. I'll get that fixed ASAP and will cut a new release. Thanks for reporting, nice catch :o) -B
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Issue fixed in GitHub [1]. I'll test this issue, and tomorrow will continue working on the remaining issues. Next release scheduled for Saturday, December 1st. It will be a live release from Jenkins meetup Sao Paulo [2]

          [1] http://www.meetup.com/jenkinsmeetup/events/91744672/
          [2] https://github.com/tupilabs/tap4j/issues/6

          Show
          kinow Bruno P. Kinoshita added a comment - Issue fixed in GitHub [1] . I'll test this issue, and tomorrow will continue working on the remaining issues. Next release scheduled for Saturday, December 1st. It will be a live release from Jenkins meetup Sao Paulo [2] [1] http://www.meetup.com/jenkinsmeetup/events/91744672/ [2] https://github.com/tupilabs/tap4j/issues/6
          Hide
          kinow Bruno P. Kinoshita added a comment - - edited

          Going to push the code as soon as I've finished reviewing the other issues. I'll have to cut a new release of tap4j too. But you can already see your TAP stream rendered correctly in Jenkins :o)

          Show
          kinow Bruno P. Kinoshita added a comment - - edited Going to push the code as soon as I've finished reviewing the other issues. I'll have to cut a new release of tap4j too. But you can already see your TAP stream rendered correctly in Jenkins :o)
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Fixed in trunk. tap4j 3.3 released. It'll be available next weekend from update center.

          Show
          kinow Bruno P. Kinoshita added a comment - Fixed in trunk. tap4j 3.3 released. It'll be available next weekend from update center.
          Hide
          jamesf James Frost added a comment -

          Thanks Bruno. Will keep an eye out for it!

          Show
          jamesf James Frost added a comment - Thanks Bruno. Will keep an eye out for it!
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Fixed in 1.8. This version will be available from update manager within few hours.

          Show
          kinow Bruno P. Kinoshita added a comment - Fixed in 1.8. This version will be available from update manager within few hours.

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              jamesf James Frost
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: