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

          Activity

          jamesf James Frost created issue -
          jamesf James Frost made changes -
          Field Original Value New Value
          Description When parsing the attached test-report.tap file I get the following error:

          {code}
          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.
          {code}
          When parsing the attached test-report.tap file I get the following error:

          {code}
          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.
          {code}

          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??)
          kinow Bruno P. Kinoshita made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          kinow Bruno P. Kinoshita made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          kinow Bruno P. Kinoshita made changes -
          Attachment screenshot-15791.png [ 22867 ]
          kinow Bruno P. Kinoshita made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146592 ] JNJira + In-Review [ 206249 ]

            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: