[Catalyst-commits] r10911 - in
Catalyst-Runtime/5.80/branches/better_scripts/t: . Test
Test/lib Test/lib/Test Test/lib/Test/Controller
Test/lib/Test/Model Test/lib/Test/View Test/root
Test/root/static Test/root/static/images Test/script Test/t
dhoss at dev.catalyst.perl.org
dhoss at dev.catalyst.perl.org
Fri Jul 17 01:43:30 GMT 2009
Author: dhoss
Date: 2009-07-17 01:43:29 +0000 (Fri, 17 Jul 2009)
New Revision: 10911
Added:
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Changes
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Makefile.PL
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/README
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Root.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Snarf.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Model/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Model/YouTube.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/View/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/View/TT.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/favicon.ico
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built_shadow.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered_shadow.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built_shadow.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered_shadow.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/catalyst_logo.png
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_cgi.pl
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_create.pl
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_fastcgi.pl
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_server.pl
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_test.pl
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/01app.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/02pod.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/03podcoverage.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/controller_Snarf.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/model_YouTube.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/view_TT.t
Catalyst-Runtime/5.80/branches/better_scripts/t/Test/test.conf
Log:
created proof of working app
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Changes
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Changes (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Changes 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,4 @@
+This file documents the revision history for Perl extension Test.
+
+0.01 2009-07-16 19:29:11
+ - initial revision, generated by Catalyst
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Makefile.PL
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Makefile.PL (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/Makefile.PL 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,20 @@
+#!/usr/bin/env perl
+# IMPORTANT: if you delete this file your app will not work as
+# expected. You have been warned.
+use inc::Module::Install;
+
+name 'Test';
+all_from 'lib/Test.pm';
+
+requires 'Catalyst::Runtime' => '5.80005';
+requires 'Catalyst::Plugin::ConfigLoader';
+requires 'Catalyst::Plugin::Static::Simple';
+requires 'Catalyst::Action::RenderView';
+requires 'parent';
+requires 'Config::General'; # This should reflect the config file format you've chosen
+ # See Catalyst::Plugin::ConfigLoader for supported formats
+catalyst;
+
+install_script glob('script/*.pl');
+auto_install;
+WriteAll;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/README
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/README (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/README 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1 @@
+Run script/test_server.pl to test the application.
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Root.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Root.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Root.pm 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,61 @@
+package Test::Controller::Root;
+
+use strict;
+use warnings;
+use parent 'Catalyst::Controller';
+
+#
+# Sets the actions in this controller to be registered with no prefix
+# so they function identically to actions created in MyApp.pm
+#
+__PACKAGE__->config->{namespace} = '';
+
+=head1 NAME
+
+Test::Controller::Root - Root Controller for Test
+
+=head1 DESCRIPTION
+
+[enter your description here]
+
+=head1 METHODS
+
+=cut
+
+=head2 index
+
+=cut
+
+sub index :Path :Args(0) {
+ my ( $self, $c ) = @_;
+
+ # Hello World
+ $c->response->body( $c->welcome_message );
+}
+
+sub default :Path {
+ my ( $self, $c ) = @_;
+ $c->response->body( 'Page not found' );
+ $c->response->status(404);
+}
+
+=head2 end
+
+Attempt to render a view, if needed.
+
+=cut
+
+sub end : ActionClass('RenderView') {}
+
+=head1 AUTHOR
+
+Devin Austin,,,
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Snarf.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Snarf.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Controller/Snarf.pm 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,42 @@
+package Test::Controller::Snarf;
+
+use strict;
+use warnings;
+use parent 'Catalyst::Controller';
+
+=head1 NAME
+
+Test::Controller::Snarf - Catalyst Controller
+
+=head1 DESCRIPTION
+
+Catalyst Controller.
+
+=head1 METHODS
+
+=cut
+
+
+=head2 index
+
+=cut
+
+sub index :Path :Args(0) {
+ my ( $self, $c ) = @_;
+
+ $c->response->body('Matched Test::Controller::Snarf in Snarf.');
+}
+
+
+=head1 AUTHOR
+
+Devin Austin,,,
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Model/YouTube.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Model/YouTube.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/Model/YouTube.pm 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,26 @@
+package Test::Model::YouTube;
+
+use strict;
+use warnings;
+use parent 'Catalyst::Model';
+
+=head1 NAME
+
+Test::Model::YouTube - Catalyst Model
+
+=head1 DESCRIPTION
+
+Catalyst Model.
+
+=head1 AUTHOR
+
+Devin Austin,,,
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/View/TT.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/View/TT.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test/View/TT.pm 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,31 @@
+package Test::View::TT;
+
+use strict;
+use base 'Catalyst::View::TT';
+
+__PACKAGE__->config(TEMPLATE_EXTENSION => '.tt');
+
+=head1 NAME
+
+Test::View::TT - TT View for Test
+
+=head1 DESCRIPTION
+
+TT View for Test.
+
+=head1 SEE ALSO
+
+L<Test>
+
+=head1 AUTHOR
+
+Devin Austin,,,
+
+=head1 LICENSE
+
+This library is free software, you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/lib/Test.pm 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,64 @@
+package Test;
+
+use strict;
+use warnings;
+
+use Catalyst::Runtime 5.80;
+
+# Set flags and add plugins for the application
+#
+# -Debug: activates the debug mode for very useful log messages
+# ConfigLoader: will load the configuration from a Config::General file in the
+# application's home directory
+# Static::Simple: will serve static files from the application's root
+# directory
+
+use parent qw/Catalyst/;
+use Catalyst qw/-Debug
+ ConfigLoader
+ Static::Simple/;
+our $VERSION = '0.01';
+
+# Configure the application.
+#
+# Note that settings in test.conf (or other external
+# configuration file that you set up manually) take precedence
+# over this when using ConfigLoader. Thus configuration
+# details given here can function as a default configuration,
+# with an external configuration file acting as an override for
+# local deployment.
+
+__PACKAGE__->config( name => 'Test' );
+
+# Start the application
+__PACKAGE__->setup();
+
+
+=head1 NAME
+
+Test - Catalyst based application
+
+=head1 SYNOPSIS
+
+ script/test_server.pl
+
+=head1 DESCRIPTION
+
+[enter your description here]
+
+=head1 SEE ALSO
+
+L<Test::Controller::Root>, L<Catalyst>
+
+=head1 AUTHOR
+
+Devin Austin,,,
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/favicon.ico
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/favicon.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built_shadow.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_built_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered_shadow.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_120x50_powered_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built_shadow.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_built_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered_shadow.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/btn_88x31_powered_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/catalyst_logo.png
===================================================================
(Binary files differ)
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/root/static/images/catalyst_logo.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_cgi.pl
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_cgi.pl (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_cgi.pl 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,30 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('Test', 'CGI');
+
+1;
+
+=head1 NAME
+
+test_cgi.pl - Catalyst CGI
+
+=head1 SYNOPSIS
+
+See L<Catalyst::Manual>
+
+=head1 DESCRIPTION
+
+Run a Catalyst application as a cgi script.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_cgi.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_create.pl
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_create.pl (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_create.pl 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,85 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Getopt::Long;
+use Pod::Usage;
+eval "use Catalyst::Helper;";
+
+if ($@) {
+ die <<END;
+To use the Catalyst development tools including catalyst.pl and the
+generated script/myapp_create.pl you need Catalyst::Helper, which is
+part of the Catalyst-Devel distribution. Please install this via a
+vendor package or by running one of -
+
+ perl -MCPAN -e 'install Catalyst::Devel'
+ perl -MCPANPLUS -e 'install Catalyst::Devel'
+END
+}
+
+my $force = 0;
+my $mech = 0;
+my $help = 0;
+
+GetOptions(
+ 'nonew|force' => \$force,
+ 'mech|mechanize' => \$mech,
+ 'help|?' => \$help
+ );
+
+pod2usage(1) if ( $help || !$ARGV[0] );
+
+my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } );
+
+pod2usage(1) unless $helper->mk_component( 'Test', @ARGV );
+
+1;
+
+=head1 NAME
+
+test_create.pl - Create a new Catalyst Component
+
+=head1 SYNOPSIS
+
+test_create.pl [options] model|view|controller name [helper] [options]
+
+ Options:
+ -force don't create a .new file where a file to be created exists
+ -mechanize use Test::WWW::Mechanize::Catalyst for tests if available
+ -help display this help and exits
+
+ Examples:
+ test_create.pl controller My::Controller
+ test_create.pl -mechanize controller My::Controller
+ test_create.pl view My::View
+ test_create.pl view MyView TT
+ test_create.pl view TT TT
+ test_create.pl model My::Model
+ test_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
+ dbi:SQLite:/tmp/my.db
+ test_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
+ dbi:Pg:dbname=foo root 4321
+
+ See also:
+ perldoc Catalyst::Manual
+ perldoc Catalyst::Manual::Intro
+
+=head1 DESCRIPTION
+
+Create a new Catalyst Component.
+
+Existing component files are not overwritten. If any of the component files
+to be created already exist the file will be written with a '.new' suffix.
+This behavior can be suppressed with the C<-force> option.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_create.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_fastcgi.pl
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_fastcgi.pl (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_fastcgi.pl 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,47 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('Test','FastCGI');
+
+1;
+
+=head1 NAME
+
+test_fastcgi.pl - Catalyst FastCGI
+
+=head1 SYNOPSIS
+
+test_fastcgi.pl [options]
+
+ Options:
+ -? -help display this help and exits
+ -l -listen Socket path to listen on
+ (defaults to standard input)
+ can be HOST:PORT, :PORT or a
+ filesystem path
+ -n -nproc specify number of processes to keep
+ to serve requests (defaults to 1,
+ requires -listen)
+ -p -pidfile specify filename for pid file
+ (requires -listen)
+ -d -daemon daemonize (requires -listen)
+ -M -manager specify alternate process manager
+ (FCGI::ProcManager sub-class)
+ or empty string to disable
+ -e -keeperr send error messages to STDOUT, not
+ to the webserver
+
+=head1 DESCRIPTION
+
+Run a Catalyst application as fastcgi.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_fastcgi.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_server.pl
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_server.pl (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_server.pl 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,6 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('Test', 'Server');
+
+1;
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_server.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_test.pl
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_test.pl (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_test.pl 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,41 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('Test','Test');
+
+1;
+
+
+=head1 NAME
+
+test_test.pl - Catalyst Test
+
+=head1 SYNOPSIS
+
+test_test.pl [options] uri
+
+ Options:
+ -help display this help and exits
+
+ Examples:
+ test_test.pl http://localhost/some_action
+ test_test.pl /some_action
+
+ See also:
+ perldoc Catalyst::Manual
+ perldoc Catalyst::Manual::Intro
+
+=head1 DESCRIPTION
+
+Run a Catalyst action from the command line.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
Property changes on: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/script/test_test.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/01app.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/01app.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/01app.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,8 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+BEGIN { use_ok 'Catalyst::Test', 'Test' }
+
+ok( request('/')->is_success, 'Request should succeed' );
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/02pod.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/02pod.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/02pod.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+eval "use Test::Pod 1.14";
+plan skip_all => 'Test::Pod 1.14 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_files_ok();
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/03podcoverage.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/03podcoverage.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/03podcoverage.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_coverage_ok();
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/controller_Snarf.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/controller_Snarf.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/controller_Snarf.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,10 @@
+use strict;
+use warnings;
+use Test::More tests => 3;
+
+BEGIN { use_ok 'Catalyst::Test', 'Snarf' }
+BEGIN { use_ok 'Test::Controller::Snarf' }
+
+ok( request('/snarf')->is_success, 'Request should succeed' );
+
+
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/model_YouTube.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/model_YouTube.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/model_YouTube.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,6 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'Test::Model::YouTube' }
+
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/view_TT.t
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/view_TT.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/t/view_TT.t 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,6 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'Test::View::TT' }
+
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/Test/test.conf
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/Test/test.conf (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/Test/test.conf 2009-07-17 01:43:29 UTC (rev 10911)
@@ -0,0 +1,3 @@
+# rename this file to Test.yml and put a ':' in front of 'name' if
+# you want to use YAML like in old versions of Catalyst
+name Test
More information about the Catalyst-commits
mailing list