Test2:...OEvents(3pm)

πŸ“¦
version 0.001001 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

Test2::Plugin::IOEvents β€” bestie, this one turns STDOUT and STDERR into Test2 events πŸ’…

(It's a Perl module, it lives in the 3pm section of the manual, iykyk πŸŽ€)


🌸 DESCRIPTION 🌸

Okay so listen. This plugin does one absolutely iconic thing: it takes everything printed to STDOUT and STDERR β€” including warnings β€” and converts it into proper Test2 events. Like, actual legit events. Not just raw text screaming into the void. ✨

No cap, your stray print statements become full members of the test suite. Main character energy for every warning. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

Drop this in and you're done:

use Test2::Plugin::IOEvents;

And it's also lowkey perfect at the command line for a one-time, no-strings-attached kinda situation:

$ perl -MTest2::Plugin::IOEvents path/to/test.t

Just slap -M on there and go. 🫢


πŸ’€ CAVEATS πŸ’€

Heads up bestie: the magic of this module is achieved via tied variables. That's the whole trick. That's how the slay happens. ✨


πŸ”₯ SOURCE πŸ”₯

The source code repository for Test2-Plugin-IOEvents can be found at:

https://github.com/Test-More/Test2-Plugin-IOEvents/

Go look at it, it's giving open source excellence πŸ’–


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🌈 AUTHORS 🌈

  • Chad Granum <exodist@cpan.org>

Copyright 2020 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/


That's the whole page, bestie. Every single detail, zero skips, periodt. πŸ’…

This masterpiece was served to you by perl v5.40.0, dated 2024-09-25, under the manual page name Test2:...OEvents(3pm). Mwah. πŸ’–

πŸ“¦ where this page comes from