Merge 'trunk' into 'better_scripts'
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
CommitLineData
0ba6e8aa 1package Catalyst::Script::Test;
accb0640 2use Moose;
95389116 3use Catalyst::Test ();
d9a32f71 4use namespace::autoclean;
451b2a44 5
d3082fac 6with 'Catalyst::ScriptRole';
451b2a44 7
8sub run {
9 my $self = shift;
10
e25affcb 11 Catalyst::Test->import($self->application_name);
57dc50b0 12
95389116 13 print request($ARGV[0])->content . "\n";
57dc50b0 14
451b2a44 15}
16
73e4f0f1 17
d6e8e664 18__PACKAGE__->meta->make_immutable;
d3082fac 19
20=head1 NAME
21
22Catalyst::Script::Test - Test Catalyst application on the command line
23
24=head1 SYNOPSIS
25
26See L<Catalyst>.
27
28=head1 DESCRIPTION
29
30FIXME
31
32=head1 AUTHORS
33
34Catalyst Contributors, see Catalyst.pm
35
36=head1 COPYRIGHT
37
38This library is free software. You can redistribute it and/or modify it under
39the same terms as Perl itself.
40
41=cut