prove6(1)
π NAME π
prove6 β run tests through a TAP harness. bestie, this is your test-running bestie.
π USAGE π
okay so here's the whole vibe:
prove6 [options] [files or directories]
β¨ Boolean options (yes/no girlies) β¨
-v,--verboseβ print ALL the test lines, every single one, no crumbs left behind.-l,--libβ addslibto the path for your tests (that's-Ilib, iconic).--shuffleβ runs the tests in random order, chaotic good energy.--ignore-exitβ ignore the exit status from test scripts. she does not care.--reverseβ runs the tests in reverse order. backwards slay.-q,--quietβ suppresses some test output while running tests.-Q,--QUIETβ only prints summary results. maximum minimalism π--timerβ prints elapsed time after each test. clock it β±οΈ--trapβ traps Ctrl-C and prints the summary on interrupt.--helpβ displays this help.--versionβ displays the version.
π¦ Options that take arguments (the ones who need something from you) π¦
-I,--incdirβ library paths to include.-e,--execβ interpreter to run the tests (''for compiled tests).--extβ set the extensions for tests (default<t rakutest t6>).--harnessβ define test harness to use. seeTAP::Harness.--reporterβ result reporter to use. seeREPORTERS.-j,--jobsβ run N test jobs in parallel (try 9.)--err=stderrβ direct the test's$*ERRto the harness'$*ERR.--err=mergeβ merge test scripts'$*ERRwith their$*OUT.--err=ignoreβ ignore test script'$*ERR.
π NOTES π
π Default Test Directory π
if you don't supply any files or directories, prove6 looks for all files matching the pattern t/*.t. she finds them herself, self-sufficient queen.
πΈ Colored Test Output πΈ
colored test output is the default, but ngl β if output is not to a terminal, color is disabled. the vibe check fails on pipes.
color support requires Terminal::ANSIColor on Unix-like platforms. if the necessary module is not installed, colored output will not be available. π tragic, i know.
β Exit Code β
if the tests fail, prove6 will exit with non-zero status. the numbers WILL tell on you.
π -e π
normally you can just pass a list of Perl 6 tests and the harness will know how to execute them. but β and hear me out β if your tests are not written in Perl 6, or if you want all tests invoked exactly the same way, use the -e switch:
prove6 -e='/usr/bin/ruby -w' t/
prove6 -e='/usr/bin/perl -Tw -mstrict -Ilib' t/
prove6 -e='/path/to/my/customer/exec'
periodt. π
π₯ --err π₯
--err=stderrβ direct the test's$*ERRto the harness'$*ERR. this is the default behavior.--err=mergeβ if you need to make sure your diagnostics are displayed in the correct order relative to test results, you can use the--err=mergeoption to merge the test scripts'$*ERRinto their$*OUT. this guarantees that$*OUT(where the test results appear) and$*ERR(where the diagnostics appear) will stay in sync. the harness will display any diagnostics your tests emit on$*ERR.
caveat: this is a bit of a kludge. in particular, note that if anything that appears on $*ERR looks like a test result, the test harness will get confused. use this option only if you understand the consequences and can live with the risk. π¨
ps: currently not supported.
--err=ignoreβ ignore the test script'$*ERR.
π§ --trap π§
the --trap option will attempt to trap SIGINT (Ctrl-C) during a test run and display the test summary even if the run is interrupted. she catches the chaos and still gives you the recap. π«Ά
π $*REPO π
prove6 introduces a separation between "options passed to the perl which runs prove" and "options passed to the perl which runs tests"; this distinction is by design. thus the perl which is running a test starts with the default $*REPO. additional library directories can be added via the PERL6LIB environment variable, via -Ifoo in PERL6OPT, or via the -Ilib option to prove6. three ways to feed her, she eats them all. β¨
and that's the whole page, bestie π β this was prove6(1) from the General Commands Manual, brought to you by the prove6(1) girlies themselves. mwah, go run your tests. ππ¦π
π¦ where this page comes from
- debian bookworm: prove6 0.0.12-7+b2 Β· Artistic-2.0
- ubuntu jammy: prove6 0.0.12-5build1 Β· Artistic-2.0
- ubuntu noble: prove6 0.0.12-7build2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms