Dist::...:xtest(3pm)
π Dist::...:xtest β the manual page, bestie edition π
okay so you found the Dist::...:xtest(3pm) page (User Contributed Perl Documentation, no big deal) and honestly? it's giving "run xt tests for your dist" and it ATE. let's get into it β¨
β¨ NAME β¨
Dist::Zilla::App::Command::xtest β run xt tests for your dist π
πΈ VERSION πΈ
version 0.029 β iconic, no cap π
π¦ SYNOPSIS π¦
so you wanna run xt tests for your distribution? say less:
dzil xtest [ --no-author] [ --no-release ] [ --no-automated ] [ --all ]
this runs with AUTHOR_TESTING and RELEASE_TESTING environment variables turned on, so lowkey it's like doing this whole thing:
export AUTHOR_TESTING=1
export RELEASE_TESTING=1
dzil build
rsync -avp My-Project-Version/ .build/
cd .build;
perl Makefile.PL
make
prove -l -r xt
...except for the fact that it's built directly in a subdir of .build (like .build/ASDF123). yes, a lil subdir moment π«Ά
a build that fails tests will be left behind for analysis, and dzil will exit a non-zero value. if the tests are successful, the build directory gets removed and dzil exits with status 0. clean. β¨
you can also use xt as an alias for xtest, because we're efficient like that:
dzil xt
if you provide one or more filenames on the command line, only those tests will be run (however deeply they are nested π):
dzil xtest pod-spell.t
arguments are turned into regexp patterns, so you can do any sort of partial match you want, fr fr:
dzil xtest author/ # just the author tests
dzil xtest spell # a test with 'spell' in the path
and there is no need to add anything to dist.ini β installation of this module is sufficient to make the command available. that's it, that's the whole vibe. periodt. π
π OPTIONS π
--no-authorβ this will run the test suite without settingAUTHOR_TESTING--no-releaseβ this will run the test suite without settingRELEASE_TESTING--automatedβ this will run the test suite withAUTOMATED_TESTING=1--allβ equivalent to--release --automated --authorπ₯
π AUTHORS π
- David Golden
<dagolden@cpan.org>π - Jesse Luehrs
<doy@cpan.org>π
π COPYRIGHT AND LICENSE π
this software is Copyright (c) 2016 by David Golden.
this is free software, licensed under:
The Apache License, Version 2.0, January 2004
bestie sign-off: this page isperl v5.36.0, dated2022-12-06, and it lives atDist::...:xtest(3pm). that's the whole page. slay. π β¨π
π¦ where this page comes from
- debian bookworm: libdist-zilla-plugin-checkextratests-perl 0.029-3 Β· Apache-2.0
- debian trixie: libdist-zilla-plugin-checkextratests-perl 0.029-3 Β· Apache-2.0
- ubuntu noble: libdist-zilla-plugin-checkextratests-perl 0.029-3 Β· Apache-2.0
- ubuntu resolute: libdist-zilla-plugin-checkextratests-perl 0.029-3 Β· Apache-2.0
- ubuntu stonking: libdist-zilla-plugin-checkextratests-perl 0.029-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms