NAME

TAP::Harness::Async - Run tests in a subprocess through IO::Async

VERSION

version 0.001

SYNOPSIS

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;

DESCRIPTION

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.

METHODS

on_complete

Accessor for code to run on test completion.

SEE ALSO

Test::Harness has all the important documentation.

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2011-2012. Licensed under the same terms as Perl itself.