[JIRA] (JENKINS-58001) Tap Plugin subtest cannot be parced anymore:

1 view
Skip to first unread message

peter.barzakov@gmail.com (JIRA)

unread,
Jun 13, 2019, 5:49:03 AM6/13/19
to jenkinsc...@googlegroups.com
Petar Barzakov created an issue
 
Jenkins / Bug JENKINS-58001
Tap Plugin subtest cannot be parced anymore:
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Components: tap-plugin
Created: 2019-06-13 09:48
Environment: Jenkins ver. 2.180
Tap plugin 2.3
Priority: Major Major
Reporter: Petar Barzakov

If you have tap output form test with sub-tests like:

1..3
ok 1 - First test
    1..2
    ok 1 - This is a subtest
    ok 2 - So is this
      1..2
      ok 1 - This is a subtest
      ok 2 - So is this
ok 2 - An example subtest
ok 3 - Third test

There is an issue for tap4j in git:
regression in subtest parsing between 4.2.1 an 4.3 #56
https://github.com/tupilabs/tap4j/issues/56

Log error:

org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
	at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:257)
	at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:231)
	at org.tap4j.plugin.TapParser.parse(TapParser.java:173)
	at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:572)
	at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:444)
	at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:403)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages