Test::Is(3pm)
π Test::Is π
okay bestie, so this is the manual page for Test::Is from the User Contributed Perl Documentation section (that's the 3pm part, iykyk). It's a Perl module that lets you skip tests in a declarative way, following the Lancaster Consensus. Basically it's giving "I'm not running this unless the vibes are right" but, like, as actual code. β¨
πΈ VERSION πΈ
version 20140823.1
β¨ SYNOPSIS β¨
Say I want that this runs only on interactive environments:
use Test::Is 'interactive';
Say this test is an extended test: it takes much time to run or may have special running conditions that may inconvenience a user that just want to install the module:
use Test::Is 'extended';
Both, bestie? Both. We do both:
use Test::Is 'interactive', 'extended';
And this test is only for perl 5.10+:
use Test::Is 'perl v5.10';
use feature 'say';
...
π¦ DESCRIPTION π¦
This module is a simple way of following the specifications of the environment variables available for Perl tests as defined as one of the Lancaster Consensus at Perl QA Hackathon 2013. Link for the environment variables spec, fr fr:
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md#environment-variables-for-testing-contexts
and the main character consensus itself:
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md
Those variables β NONINTERACTIVE_TESTING, EXTENDED_TESTING β define which tests should be skipped. π
If the environment does not match what the author of the test expected, the complete test is skipped (in the same way as use Test::More skip_all => ...). no half-skipping, no situationship, the whole test is out. π
As an author, you can also expect that you will automatically benefit of later evolutions of this specification just by upgrading the module. so you're future-proofed just by updating, periodt.
As a CPAN toolchain author (CPAN client, smoker...) you may want to ensure at runtime that the installed version of this module matches the environment you set yourself. vibe check your own setup, bestie. π
π₯ SEE ALSO π₯
- Environment variables for testing contexts β the specification of the Lancaster Consensus:
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md#environment-variables-for-testing-contexts - Test::DescribeMe by WOLFSAGE, also created at Perl QA Hackathon 2013. iconic sibling behavior. π«Ά
π AUTHOR π
Olivier MenguΓ©, <mailto:dolmen@cpan.org>
π COPYRIGHT & LICENSE π
Copyright Β© 2013 Olivier MenguΓ©.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
k that's the whole page bestie, every flag-shaped detail intact, no cap π§
this page is perl v5.36.0, dated 2022-10-13, and it lives in Test::Is(3pm) β mwah, take care of her ππ
π¦ where this page comes from
- ubuntu noble: libtest-is-perl 20140823.1-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-is-perl 20140823.1-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-is-perl 20140823.1-3 Β· 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