TAP::Harness::Async - Run tests in a subprocess through IO::Async
version 0.001
use TAP::Harness::Async; use IO::Async::Loop; my $loop = IO::Async::Loop->new; my $harness = TAP::Harness::Async->new({ loop => $loop, }); $harness->runtests(@ARGV); $harness->on_complete(sub { $loop->later(sub { $loop->loop_stop }) }); $loop->loop_forever;
This is a simple test harness which does the bare minimum required to run the test process under IO::Async::Process.
WARNING: This is an early proof-of-concept version, see examples/tickit.pl for a simple demonstration and please note that the API is not stable and may change significantly in the next version.
Accessor for code to run on test completion.
Test::Harness has all the important documentation.
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2011-2012. Licensed under the same terms as Perl itself.
To install TAP::Harness::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Harness::Async
CPAN shell
perl -MCPAN -e shell install TAP::Harness::Async
For more information on module installation, please visit the detailed CPAN module installation guide.