Test::Proc - Helper tool for testing multi process program.
use Test::More;
use Test::Proc;
my $proc = test_proc 'my_task' => sub {
print 'test';
warn 'dummy';
sleep 20;
};
$proc->is_work;
$proc->stdout_like( qr/\Atest/ );
$proc->stderr_like( qr/\Adummy/ );
$proc->exit_ok;
Test::Proc is a helper tool for testing multi process product.
my $proc = test_proc $coderef;
Returns a Test::Proc::Object instance.
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody ytnobody@gmail.com