Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: tap-plugin
-
Environment:ubuntu server
-
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
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??) |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Open [ 1 ] |
Attachment | screenshot-15791.png [ 22867 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 146592 ] | JNJira + In-Review [ 206249 ] |
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