App::Rad::Tester - Test your App::Rad applications with ease


SweetPea-Cli documentation  | view source Contained in the SweetPea-Cli distribution.

Index


NAME

Top

App::Rad::Tester - Test your App::Rad applications with ease

SYNOPSIS

Top

  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




HIC SVNT DRACONES

Top

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.

LICENSE AND COPYRIGHT

Top


SweetPea-Cli documentation  | view source Contained in the SweetPea-Cli distribution.