Test2::Harness::Proc - Handle on a running test process.
This object is a handle on a running test process. You can use this to check if the process is still running, send it input, read lines of output, and check exit value.
Get the encoding (if set).
Get the STDERR handle for reading.
Get the STDOUT handle for reading.
Get the STDIN handle for writing.
Get the exit value. This will be undefined if the process is still running.
Get the filename for the test being run.
Get a single line of output from STDERR. If peek is set then the line is remembered and will be retrieved again on the nest call to get_err_line.
Get a single line of output from STDOUT. If peek is set then the line is remembered and will be retrieved again on the nest call to get_out_line.
Check if the process is done or still running. This also sets the exit attribute if the process is done.
exit
PID of the child process.
Send data to the child process via it's STDIN.
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Copyright 2016 Chad Granum <exodist7@gmail.com>.
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::Harness, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Harness
CPAN shell
perl -MCPAN -e shell install Test2::Harness
For more information on module installation, please visit the detailed CPAN module installation guide.