| Catalyst-Runtime documentation | Contained in the Catalyst-Runtime distribution. |
Catalyst::Script::Test - Test Catalyst application on the command line
myapp_test.pl [options] /path Options: -h --help display this help and exits
Script to perform a test hit against your application and display the output.
Catalyst Contributors, see Catalyst.pm
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-Runtime documentation | Contained in the Catalyst-Runtime distribution. |
package Catalyst::Script::Test; use Moose; use Catalyst::Test (); use namespace::autoclean; with 'Catalyst::ScriptRole'; sub run { my $self = shift; Catalyst::Test->import($self->application_name); foreach my $arg (@{ $self->ARGV }) { print request($arg)->content . "\n"; } } __PACKAGE__->meta->make_immutable;