TAP2JUNIT(1p)

πŸ“¦
version 0.17 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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 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