-
Bug
-
Resolution: Not A Defect
-
Major
-
None
in perl, you can produce TAP by doing:
prove -wlvm t/*.t > TAP.out
This produces multiple TAP outputs in a single file.
The error I get is:
Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found. at org.tap4j.parser.Tap13YamlParser.checkTAPPlanDuplicity(Tap13YamlParser.java:345) at org.tap4j.parser.Tap13YamlParser.parseLine(Tap13YamlParser.java:257) at org.tap4j.parser.Tap13YamlParser.parseFile(Tap13YamlParser.java:597) ... 12 more
It would be nice if TAP Parser could parse the multiple TAP outputs in a single file.
I can provide example output if you would like.
[JENKINS-16325] TAP Parser can't handle the output from prove
Description |
Original:
in perl, you can produce TAP by doing: {code}prove -wlvm t/*.t > TAP.out{code} This produces multiple TAP outputs in a single file. It would be nice if TAP Parser could parse the multiple TAP outputs in a single file. I can provide example output if you would like. |
New:
in perl, you can produce TAP by doing: {code}prove -wlvm t/*.t > TAP.out{code} This produces multiple TAP outputs in a single file. The error I get is: {code} Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found. at org.tap4j.parser.Tap13YamlParser.checkTAPPlanDuplicity(Tap13YamlParser.java:345) at org.tap4j.parser.Tap13YamlParser.parseLine(Tap13YamlParser.java:257) at org.tap4j.parser.Tap13YamlParser.parseFile(Tap13YamlParser.java:597) ... 12 more {code} It would be nice if TAP Parser could parse the multiple TAP outputs in a single file. I can provide example output if you would like. |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Hi again Todd :o)
You are not the first one to complain about the TAP plug-in not being fully compliant with Perl's test tools
When I wrote the plug-in I was focused in using it for TAP with Java (mainly using Selenium + TestNG outputting TAP with attachments [yamlish]).
Could you send or attach an example, please (take care with private or confidential data in your attachments as it takes a while to delete an attachment in JIRA)?
tap4j probably can't handle prove's output... but maybe we could create a new parser in tap plug-in, that would pre-parse prove output and then use tap4j parsers to get the TAP information. What do you think?
In order to keep backward compatibility, that would be a new option in the plug-in job configuration section, and not enabled by default (i.e. a new unchecked check box with a title like "Parse prove output").
Thanks for filing this issue. I'm using more Perl at work now, so maybe we can fix this issue and I'll learn more about prove and other Perl utilities.
/B