NAME

P5U::Lib::AutoProve - support library implementing p5u's auto-prove command

SYNOPSIS

use P5U::Lib::AutoProve;

my ($dir, $app) = P5U::Lib::AutoProve->get_app(
    verbose  => 1,
    xt       => 1,
);

chdir $dir;
$app->run;

DESCRIPTION

This is a support library for the auto-prove command.

Class Method

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.

%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.

BUGS

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=P5U.

SEE ALSO

p5u.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

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.

DISCLAIMER OF WARRANTIES

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.