TAP2JUNIT(1p)
β¨ TAP2JUNIT β the manual page bestie π
okay so real quick: this is TAP2JUNIT(1p), a lil Perl script that lives in your shell and does ONE thing beautifully β it takes TAP and turns it into JUnit. and it does it flawlessly, no cap. π
πΈ NAME πΈ
tap2junit β converts TAP output to JUnit. that's the whole vibe. it's giving translator, but make it test reports. π
π¦ SYNOPSIS π¦
tap2junit [options] <filename> <filename> ...
Options:
--suffix <suffix> Suffix for JUnit output files (default ".xml")
--verbose Display verbose status during conversion
--name <name> Provide explicit name for the JUnit test
--help/-? Display brief help message
--man Display full documentation
like, look at her. multiple filenames. options. so much range. β
π DESCRIPTION π
tap2junit converts TAP output to JUnit. that's it, that's the thesis, that's the entire main character arc. π
so here's the tea: you hand it a list of files containing TAP results, and it creates a whole series of ????.junit.xml output files β each one holding the JUnit representation of the TAP that was chillin' inside the file you gave it. one in, one out. so satisfying fr fr. π«Ά
and now for the iconic little twist: if you specify - as the filename, tap2junit will read from STDIN and write to STDOUT. very demure, very pipe-friendly. π you may also wanna use the --name option to name the test explicitly β because the default name of - is... not going to make much sense, bestie. it's literally just a dash. do with that what you will. π
β¨ OPTIONS β¨
--suffix <suffix>β tells it what suffix to staple onto all the input files, so it can generate the filename for the JUnit XML file it's about to output. βοΈ
β οΈ okay so if you want to live dangerously and over-write your original TAP files, you can set this to "" and your original TAP files will be over-written. that's not a drill, that's a genuine "no take-backs" situation. π
defaults to .xml. πΈ
--verboseβ shows you verbose status information while the conversion is happening, i.e. it tells you which TAP file it's currently working on. very "narrating my own life" of it. π--name <name>β gives the JUnit test an explicit name. if you don't provide one, a default name gets constructed based on the full path of the TAP file being processed. π¦
this option has also been aliased as --junit_name to provide compatibility with a patch from Joe McMahon. shoutout Joe. π
--help/-?β display brief help message. short and sweet. β¨--manβ displays the full documentation. (yes, the thing you're reading right now. meta.) π
π AUTHOR π
Graham TerMarsch <cpan@howlingfrog.com> π
π COPYRIGHT π
Copyright 2008-2010, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, honestly. π
π§ SEE ALSO π§
TAP::Formatter::JUnit β go read that one next, bestie, it's the sequel. π
and that's the whole page!! this manual was served to you by perl v5.40.0, dated 2025-02-07, and yes i know the original header and footer lived on those exact lines β but we folded them in here instead, so consider this the cutest possible sign-off: mwah π
β¨ go convert some TAP, you got this π«Ά
π¦ where this page comes from
- debian trixie: libtap-formatter-junit-perl 0.17-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtap-formatter-junit-perl 0.17-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtap-formatter-junit-perl 0.17-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms