1 package Catalyst::Script::Test;
5 use lib "$FindBin::Bin/../lib";
7 use namespace::autoclean -except => [ qw(meta) ];
9 has app => ( isa => 'Str', is => 'ro', required => 1 );
10 has help => ( isa => 'Bool', is => 'ro', required => 0, default => sub { 0 } );
16 Class::MOP::load_class("Catalyst::Test");
17 Catalyst::Test->import($self->app);
19 pod2usage(1) if ( $self->help || !$ARGV[1] );
20 print request($ARGV[1])->content . "\n";