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

Tap Plugin subtest cannot be parsed anymore:

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • tap-plugin
    • None
    • Jenkins ver. 2.180
      Tap plugin 2.3

      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)
      

            kinow Bruno P. Kinoshita
            nektar Petar Barzakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: