Perl Testing in 2023 - DEV Community 👩💻👨💻
With my open source work, I’ve historically taken an approach which relies more on integration... Tagged with perl, tdd, test2suite.
Test2::V0 provides a good base to work with, so we add that to our project’s requirements list straight away.
We’ll round that out with:
Test2::Require::AuthorTesting to skip certain tests when run on the end user’s machine, and require the AUTHOR_TESTING environment variable to run. This is useful for tests which are very slow or require a highly specific environment to run in.
Test2::Require::Module to skip certain tests when optional modules are unavailable.
Test2::Tools::Spec to better structure our unit tests.
Test2::Plugin::BailOnFail for when your tests simply cannot carry on. Use sparingly.
February 3, 2023 at 2:17:56 PM EST
*
FILLER