Subject: | Allow Script/Test to accept multiple URLs on command line |
Allow Test.pm to execute multiple URLs in a single load/compilation of
the application. For large applications this can be very useful.
*** Test.pm.orig 2010-01-13 11:35:48.000000000 -0500
--- Test.pm 2010-01-13 11:40:22.000000000 -0500
***************
*** 10,16 ****
Catalyst::Test->import($self->application_name);
! print request($self->ARGV->[0])->content . "\n";
}
--- 10,18 ----
Catalyst::Test->import($self->application_name);
! for my $arg (@{$self->ARGV}) {
! print request($arg)->content . "\n";
! }
}
***************
*** 22,28 ****
=head1 SYNOPSIS
! myapp_test.pl [options] /path
Options:
-h --help display this help and exits
--- 24,30 ----
=head1 SYNOPSIS
! myapp_test.pl [options] /path ...
Options:
-h --help display this help and exits