TEST2::REQUIRE::AUTHORTESTING(3pm)

✨ Test2::Require::AuthorTesting ✨

okay bestie, this one is from the Perl Programmers Reference Guide and it’s a tiny little helper with main character energy πŸ’…

🌸 NAME 🌸

Test2::Require::AuthorTesting β€” only run a test when the AUTHOR_TESTING environment variable is set. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole vibe is: it’s super common to write tests that only run when the AUTHOR_TESTING environment variable is set. This module automates the β€” and I quote β€” admittedly trivial work of creating a test like that. It’s giving β€œsmall but iconic” fr fr πŸŽ€

πŸŽ€ SYNOPSIS πŸŽ€

Here’s the look:

use Test2::Require::AuthorTesting;

...

done_testing;

πŸ”₯ SOURCE πŸ”₯

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. slay πŸ”₯

πŸ‘‘ MAINTAINERS πŸ‘‘

Chad Granum <exodist@cpan.org> β€” holding it down as maintainer.

🫢 AUTHORS 🫢

Chad Granum <exodist@cpan.org> β€” author credit, same icon.

Copyright Chad Granum <exodist@cpan.org>.

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/


okay bye bestie πŸ’– β€” this page is from perl v5.42.3, dated 2026-11-03, and yes it’s the Test2::...rTesting(3pm) page energy πŸŽ€βœ¨

πŸ“¦ where this page comes from