Conversation
That doesn't "recommend" the use of TEST_AUTHOR, it's just using that variable as an example of skipping the tests on non-author situation. Perl build tool authors have made a consensus around environment variable for such release engineering tests back in 2008: https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/oslo-consensus.md and the use of RELEASE_TESTING is more appropriate here. See also #10. |
|
Thanks, miyagawa for posting these links - good to see that there've been quite some thoughts on this topic. |
Test::Perl::Critic states as recommended usage for CPAN distribution authors to make the execution of the tests dependent on the existence of a TEST_AUTHOR environment variable - cf https://metacpan.org/module/Test::Perl::Critic#SYNOPSIS
I think it is a good idea to set this variable during the "disttest" step, so that these tests will be executed when shipit is performing the tests.