| SweetPea-Cli documentation | view source | Contained in the SweetPea-Cli distribution. |
App::Rad::Tester - Test your App::Rad applications with ease
use Test::More tests => 3;
use App::Rad::Tester;
# get STDOUT from your tested app
my $output = test_app("myapp.pl", qw(somecommand --foo=bar) );
# alternatively, pass any string with code and it
# will create a temporary file for you.
my ($output, $filename) = test_app(\*DATA, qw(help) );
__DATA__
use App::Rad;
App::Rad->run
App::Rad::Tester is a very experimental framework for testing App::Rad programs. You may already use it in your app's tests but please keep in mind that this tester module might (most likely will) change its behavior in future releases.
Copyright 2008 Breno G. de Oliveira <garu at cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
| SweetPea-Cli documentation | view source | Contained in the SweetPea-Cli distribution. |