Fix up docs
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
1 package Catalyst::Script::Test;
2 use Moose;
3 use Catalyst::Test ();
4 use namespace::autoclean;
5
6 with 'Catalyst::ScriptRole';
7
8 sub run {
9     my $self = shift;
10
11     Catalyst::Test->import($self->application_name);
12
13     print request($ARGV[0])->content  . "\n";
14 }
15
16
17 __PACKAGE__->meta->make_immutable;
18
19 =head1 NAME
20
21 Catalyst::Script::Test - Test Catalyst application on the command line
22
23 =head1 SYNOPSIS
24
25   myapp_test.pl [options] /path
26
27   Options:
28   -h     --help           display this help and exits
29
30 =head1 DESCRIPTION
31
32 Script to perform a test hit against your application and display the output.
33
34 =head1 AUTHORS
35
36 Catalyst Contributors, see Catalyst.pm
37
38 =head1 COPYRIGHT
39
40 This library is free software. You can redistribute it and/or modify it under
41 the same terms as Perl itself.
42
43 =cut