Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
{jenkins-plugin-info:tap|jiraComponent=tap-plugin}
Excerpt

This plug-in adds support to TAP test result files to Jenkins. It lets you specify an ant-like pattern for a directory that contains your TAP files.

TAP
TAP Plug-in depends on tap4j - a TAP implementation for Java, and on the JUnit Plug-in. You may get errors if the JUnit Plug-in is not active in your Jenkins instance (see JENKINS-27227 for more).

...

The plug-in cannot handle prove's default output (since it includes more information than simply TAP, and causes tap4j parser to fail). The best way to handle the prove output is by using Perl module TAP::Harness::Archive. Supposing you have your tests under t/ directory, you can create another directory (say, output) and archive your TAP tests with prove by using a command line similar to the below:

Code Block

prove t/ --archive output

...

Note

This plug-in is not developed for Hudson, and we don't fix bugs happening in any version of Hudson.

Plugin

1.0

1.1

1.2.x

1.3~1.9

1.10

1.11

1.12

1.13

1.14

1.15

1.16

1.17

1.18+

TAP

13

13

13

13

13

13

13

13

13

13

13

13

13

Jenkins

1.399+

1.399+

1.399+

1.399+

1.488+

1.488+

1.488+

1.488+

1.488+

1.488+

1.488+

1.488+

1.488+

Hudson

?

?

?

Not supported

Not supported

Not supported

Not supported

Not supported

Not supported

Not supported

Not supported

Not supported

Not supported

Open Issues

Jira Issues
renderModedynamic
width850px
anonymoustrue
urlhttp://issues.jenkins-ci.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+JENKINS+AND+status+in+%28Open%2C+%22In+Progress%22%2C+Reopened%29+AND+component+%3D+tap-plugin
height300px

Sponsors

For commercial support, please get contact us via @tupilabs

...

Info
titleJCertif 2011

JCertif - Make your tests speak TAP - Speaker: Bruno P. Kinoshita
September, 2011 - Brazzaville, Congo

Release Notes

2.2 (2018-01-26)
  1. Jira
    serverJenkins JIRA
    serverIddd058dce-0c66-3b77-8b09-71b1d7728747
    keyJENKINS-48925
     TAP plugin is not compatible with JEP-200 in Jenkins 2.102
2.1 (2017-02-28)
  1. JENKINS-22250: "fail the build if no test results are present" option doesn't fail the job
  2. JENKINS-21456: Plugin runs despite earlier errors
  3. Upgraded tap4j dependency from 4.2.0 to 4.2.1 (latest)

...

Simulating TAP streams with shell build steps

Code Block

#!/bin/bash


for x in {1..100}; do


cat > $x.tap <<EOF
ok 1
not ok 2
ok 3 # SKIP
not ok 4
ok 5
ok 6
ok 7
EOF


done ;