Test2::Warnings(3)

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Test2::Warnings(3) manual page, a.k.a. User Contributed Perl Documentation. This module is Test2::Warnings, and its whole thing is testing for warnings and also testing for the lack of them. Both. Iconic.

✨ VERSION ✨

version 0.038 β€” write it down, bestie. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

First vibe check:

use Test2::V0;
use Test::Warnings;

pass('yay!');
done_testing;

and it emits TAP like:

ok 1 - yay!
ok 2 - no (unexpected) warnings (via done_testing)
1..2

Also:

use Test::More tests => 3;
use Test::Warnings 0.005 ':all';

pass('yay!');
like(warning { warn "oh noes!" }, qr/^oh noes/, 'we warned');

and this one emits TAP:

ok 1 - yay!
ok 2 - we warned
ok 3 - no (unexpected) warnings (via END block)
1..3

🌸 DESCRIPTION 🌸

For the full documentation, go see Test::Warnings β€” it's the main character for docs. πŸ’–

For now, this is a simple wrapper around Test::Warnings, but there's a plan to make this a full port, eject all the old Test::Builder compatibility, and use the Test2 suite correctly. So yeah, glow-up roadmap, no cap.

🫢 SUPPORT 🫢

Bugs may be submitted through the RT bug tracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Warnings (or email bug-Test-Warnings@rt.cpan.org, which is mailto:bug-Test-Warnings@rt.cpan.org).

There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/perl-qa.html.

There is also an IRC channel available for users of this distribution, at #perl on irc.perl.org β€” link vibe: irc://irc.perl.org/#perl-qa.

I'm also usually active on IRC, as 'ether' at irc.perl.org and irc.libera.chat.

πŸ‘‘ AUTHOR πŸ‘‘

Karen Etheridge β€” ether@cpan.org. Author slay. πŸ’œ

This software is copyright (c) 2013 by Karen Etheridge.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Periodt.


That's the whole page, bestie! 🫢 Source/version: perl v5.42.0, date: 2025-02-02 β€” Test2::Warnings(3) out. πŸ’…

πŸ“¦ where this page comes from