Issue Type: Bug Bug
Affects Versions: current
Assignee: Bruno P. Kinoshita
Components: tap
Created: 13/Nov/12 10:25 AM
Description:

If the file type is considered as binary by Jenkins webserver then the TAP plugin doesn't consider this file for inclusion in TAP reports. This can be quite confusing and if you're not aware of this issue it can easily hide problems.

Note: I'm not talking about file permissions but what the Jenkins webserver (Stapler?) considers the file as. If the file extension isn't something which Jenkins serves as plain text then this file is ignored by the TAP plugin.

To reproduce this issue use the following shell execution step:

rm -rf reports
mkdir reports

cat > reports/demo << EOF
1..1
ok 1 demo OK
EOF

cat > reports/demo.pl << EOF
1..1
ok 1 demo.pl OK
EOF

cat > reports/demo.txt << EOF
1..1
ok 1 demo.txt OK
EOF

and enable "reports/*" for TAP results.

Then the following report looks like:

http://michael-prokop.at/screeni/gkrellShoot_12-11-13_110931.png

whereas there are 3 TAP result files available and considered for inclusion:

http://michael-prokop.at/screeni/gkrellShoot_12-11-13_110845.png

When clicking on the "demo" file name (not "view"!) in your browser it's considered as BIN file and download gets enforced. When clicking on demo.pl and demo.txt instead they are provided as plain-text files without forcing download to view them.

It would be nice if such "binary files" could be also considered for TAP reports or if not at least warn in the TAP execution run and mention in the documentation that files should be preferably have suffix .tap.

Project: Jenkins
Priority: Major Major
Reporter: Michael Prokop
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to