TAPx::Parser::Source - Stream output from some source
Version 0.50_07
Takes a command and hopefully returns a stream from it.
use TAPx::Parser::Source; my $source = TAPx::Parser::Source->new; my $stream = $source->source(['/usr/bin/ruby', 'mytest.rb'])->get_stream;
new
my $source = TAPx::Parser::Source->new;
Returns a new TAPx::Parser::Source object.
TAPx::Parser::Source
source
my $source = $source->source; $source->source(['./some_prog some_test_file']); # or $source->source(['/usr/bin/ruby', 't/ruby_test.rb']);
Getter/setter for the source. The source should generally consist of an array reference of strings which, when executed via &IPC::Open3::open3, should return a filehandle which returns successive rows of TAP.
&IPC::Open3::open3
get_stream
my $stream = $source->get_stream;
Returns a stream of the output generated by executing source.
error
unless ( my $stream = $source->get_stream ) { die $source->error; }
If a stream cannot be created, this method will return the error.
exit
my $exit = $source->exit;
Returns the exit status of the process if and only if an error occurs in opening the file.
pid
my $pid = $source->pid;
Returns the pid of the command being used to execute the tests.
To install TAPx::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAPx::Parser
CPAN shell
perl -MCPAN -e shell install TAPx::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.