Test2::Plugin::IOEvents - Turn output written to STDOUT and STDERR into Events.
This plugin will turn all output sent to STDOUT and STDERR (including warnings) into Test2::Event::Output events.
If you decide to use this plugin along with Test2::Plugin::IOMuxer you should load IOMuxer first, and then IOEvents.
Or you could simply use Test2::Plugin::IOSync instead of loading both modules yourself.
use Test2::Plugin::IOEvents; print "This will be an event.\n"; print STDERR "This will also be an event\n"; warn "This will be an event, unless it is intercepted by a SIGWARN handler.\n";
The source code repository for Test2-Plugin-IOSync can be found at http://github.com/Test-More/Test2-Plugin-IOSync/.
Copyright 2017 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/
To install Test2::Plugin::IOSync, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Plugin::IOSync
CPAN shell
perl -MCPAN -e shell install Test2::Plugin::IOSync
For more information on module installation, please visit the detailed CPAN module installation guide.