Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
lib/TAP/Harness/ | H | 08-Feb-2015 | - | 501 | 221 | |
t/ | H | 08-Feb-2015 | - | 10,466 | 10,383 | |
Build.PL | H A D | 08-Feb-2015 | 792 | 36 | 32 | |
ChangeLog | H A D | 08-Feb-2015 | 3.4 KiB | 116 | 93 | |
MANIFEST | H A D | 08-Feb-2015 | 941 | 37 | 36 | |
META.json | H A D | 08-Feb-2015 | 1.5 KiB | 63 | 62 | |
META.yml | H A D | 08-Feb-2015 | 959 | 36 | 35 | |
README.md | H A D | 08-Feb-2015 | 1.6 KiB | 61 | 39 |
README.md
1TAP::Harness::JUnit 2=================== 3 4[TAP::Harness::JUnit][1] provides a test harness that runs [TAP][5] tests and outputs JUnit-compatible XML. 5 6It is useful for integrating Perl test suites with software that expects JUnit output, for example [Jenkins][3]. 7 8## Use 9 10To generate JUnit output using prove, supply `TAP::Harness::JUnit` for the `--harness` argument to `prove`: 11 12```sh 13prove --harness TAP::Harness::JUnit 14``` 15 16## Environment variables 17 18`JUNIT_OUTPUT_FILE` - specify the name of the JUnit XML output file. Defaults to `junit_output.xml`. 19 20`JUNIT_PACKAGE` - specify a package name for the results. 21 22 23## Installation 24 25Before building it yourself, you may prefer to fetch the package from your 26Operating System distribution, if one exists. Here's how would you install 27it in Fedora: 28 29```sh 30yum -y install 'perl(TAP::Harness::JUnit)' 31``` 32 33Otherwise, follow the usual [Module::Build][4] convention: 34 35```sh 36perl Build.pl 37./Build 38./Build install 39``` 40 41The build script will issue a warning when any of required modules is missing or wrong version. 42 43See the [POD documentation][2] for more information (on how to use the module, licensing, copyright, etc.): 44 45```sh 46perldoc TAP::Harness::JUnit 47``` 48 49Before installing the module, you can do: 50 51```sh 52perldoc lib/TAP/Harness/JUnit.pm 53``` 54 55 56[1]: http://search.cpan.org/dist/TAP-Harness-JUnit/ "TAP::Harness::JUnit" 57[2]: http://search.cpan.org/dist/TAP-Harness-JUnit/lib/TAP/Harness/JUnit.pm "TAP::Harness::JUnit POD" 58[3]: http://jenkins-ci.org "Jenkins" 59[4]: http://search.cpan.org/dist/Module-Build/lib/Module/Build.pm "Module::Build POD" 60[5]: http://testanything.org "TAP - Test Anything Protocol" 61