P5U::Lib::AutoProve - support library implementing p5u's auto-prove command
use P5U::Lib::AutoProve; my ($dir, $app) = P5U::Lib::AutoProve->get_app( verbose => 1, xt => 1, ); chdir $dir; $app->run;
This is a support library for the auto-prove command.
There's only one method (a class method, not an object method... this isn't really an OO module) worth caring about:
get_app(%opts)
Returns a two-item list. The first is a directory to chdir to; the second is an instance of App::Prove which the run method should be called on.
run
%opts represents the command-line options passed to prove. When options have an abbreviated and full version (e.g. -v versus --verbose) the longer version is expected, without the dashes. For boolean options, the value is ignored; the existence of the option in the hash at all (even with a false or undefined value) switches it on.
-v
--verbose
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=P5U.
p5u.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012-2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install P5U, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P5U
CPAN shell
perl -MCPAN -e shell install P5U
For more information on module installation, please visit the detailed CPAN module installation guide.