• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/TAP/Harness/H08-Feb-2015-501221

t/H08-Feb-2015-10,46610,383

Build.PLH A D08-Feb-2015792 3632

ChangeLogH A D08-Feb-20153.4 KiB11693

MANIFESTH A D08-Feb-2015941 3736

META.jsonH A D08-Feb-20151.5 KiB6362

META.ymlH A D08-Feb-2015959 3635

README.mdH A D08-Feb-20151.6 KiB6139

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