App::Y...Runner(3pm)
β¨ NAME β¨
App::Yath::Options::Runner β bestie, this is the page for the module that holds the Runner options for Yath. (The pager up top squishes it down to App::Y...Runner(3pm), don't panic, same girl. π
)
π DESCRIPTION π
Okay so, real talk: this is where the command line options for the runner are defined. That's the whole job. The runner's entire little wardrobe of flags lives right here, all organized and ready. π¦
π PROVIDED OPTIONS π
π COMMAND OPTIONS π
π§ Runner Options π§
--abort-on-bail,--no-abort-on-bailβ if a bail-out shows up, abort all the testing. (default: on) π--blib,-b,--no-blibβ pullblib/libandblib/archinto your module path. (Default: include if it exists)--cover,--cover=-silent,1,+ignore,^t/,+ignore,^t2/,+ignore,^xt,+ignore,^test.pl,--no-coverβ useDevel::Coverto calculate test coverage. Careful babe: this disables forking. If you don't pass any args, these are the ones used:-silent,1,+ignore,^t/,+ignore,^t2/,+ignore,^xt,+ignore,^test.plπΈ--dump-depmap,--no-dump-depmapβ when you're using staged preload, dump the depmap for each stage as json files. π¦--event-timeout SECONDS,--et SECONDS,--no-event-timeoutβ kill a test if no output has come in within the timeout period. (Default: 60 seconds). Drop the# HARNESS-NO-TIMEOUTcomment at the top of a test file to turn timeouts off for that one test. This is what stops a hung test from just vibing forever. π--fail-on-resource-skip,--no-fail-on-resource-skipβ treat resource-skipped tests as failures instead of skips. When it's on, tests that would've been skipped because resources weren't available get marked as failing instead. no cap. π«Ά--include ARG,--include=ARG,-I ARG,-I=ARG,--no-includeβ add a directory to your include paths. Can be specified multiple times. π₯--job-count 4,--job-count 8:2,--jobs 4,--jobs 8:2,-j4,-j8:2,--no-job-countβ set how many concurrent jobs to run. Add a:#if you also wanna designate multiple slots per test.8:2means 8 slots, but each test takes 2 slots, so 4 tests run concurrently. Tests can find their concurrency assignment in theT2_HARNESS_MY_JOB_CONCURRENCYenvironment variable. Can also be set with the environment variablesYATH_JOB_COUNT,T2_HARNESS_JOB_COUNT,HARNESS_JOB_COUNT. β--lib,-l,--no-libβ pulllibinto your module path. (Default: include if it exists)--nytprof,--no-nytprofβ useDevel::NYTProfon tests. This setsaddpid=1for you. Works with or without fork. β¨--post-exit-timeout SECONDS,--pet SECONDS,--no-post-exit-timeoutβ stop waiting post-exit after the timeout period. (Default: 15 seconds) Some tests fork and let the parent exit before all their output is written. IfTest2::Harnessspots an incomplete plan after the test exits, it'll keep monitoring for more events until the timeout period is up. Drop the# HARNESS-NO-TIMEOUTcomment at the top of a test file to turn timeouts off for that one test. π°οΈ--preload-threshold ARG,--preload-threshold=ARG,--Pt ARG,--Pt=ARG,-W ARG,-W=ARG,--no-preload-thresholdβ only do the preload if at least N tests are actually gonna run. Sometimes a full preload takes longer than just running the tests, so this lets you set a minimum number of test jobs that have to be run for preload to happen. Has no effect for a persistent runner. The default is 0, which means always preload. π--preloads ARG,--preloads=ARG,--preload ARG,--preload=ARG,-P ARG,-P=ARG,--no-preloadsβ preload a module before running tests. Can be specified multiple times. π--resource-timeout SECONDS,--rt SECONDS,--no-resource-timeoutβ abort the test run if no tests have been able to start forSECONDSseconds while there are pending tests and none running. Genuinely so useful when a resource class is broken and keeps claiming a resource will become available, which would stop yath from ever finishing. (Default: 0, meaning no timeout)--resource Port,--resource +Test2::Harness::Runner::Resource::Port,-R Port,--no-resourceβ use a resource module to assign resource assignments to individual tests. Can be specified multiple times. π--runner-id ARG,--runner-id=ARG,--no-runner-idβ Runner ID (usually a generated uuid). π--shared-jobs-config .sharedjobslots.yml,--shared-jobs-config relative/path/.sharedjobslots.yml,--shared-jobs-config /absolute/path/.sharedjobslots.yml,--no-shared-jobs-configβ where to look for a shared slot config file. If you hand it a filename with no path, yath will search the current directory and every parent directory for that name. π--slots-per-job 2,-x2,--no-slots-per-jobβ sets the number of slots each job will use (default 1). Normally this is set by the:#in-j#:#. Can also be set with the environment variableT2_HARNESS_JOB_CONCURRENCY. π―--switch ARG,--switch=ARG,-S ARG,-S=ARG,--no-switchβ pass the specified switch to perl for each test. This is not compatible with preload. Can be specified multiple times. β‘--tlib,--no-tlibβ pullt/libinto your module path. (Default: off)--unsafe-inc,--no-unsafe-incβ perl is removing.from@INCas a security concern, and this option keeps things from breaking for now. Can also be set with the environment variablePERL_USE_UNSAFE_INC. π--use-fork,--fork,--no-use-forkβ (default: on, except on windows) Normally tests are run by forking, which is what makes features like preloading possible. This turns that behavior off globally (and that's not compatible with preloading). It's slower too, so it's way better to tag misbehaving tests with the# HARNESS-NO-PRELOADcomment in their header and only disable forking for those. Can also be set with the environment variables!T2_NO_FORK,T2_HARNESS_FORK,!T2_HARNESS_NO_FORK,YATH_FORK,!YATH_NO_FORK. π--use-timeout,--timeout,--no-use-timeoutβ (default: on) Enable/disable timeouts. β³
π SOURCE π
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/. Go be nosy, bestie. π
π«Ά MAINTAINERS π«Ά
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
and that's the whole page, periodt. π written againstperl v5.40.1, dated2026-05-10β that's<rainbow>App::Y...Runner(3pm)</rainbow>, signing off, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-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