X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;h=2fe879aa1a57f6cd513314b07e93379f563e9064;hb=fa025310d03b9a7c3da9368c6cd7aec3ced82820;hp=35a46953af63bd65e7004fb0ffa7baeb3788b493;hpb=fbbb908469adb8ac7d9ec2b72df2722587c765e7;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 35a4695..2fe879a 100644 --- a/lib/Catalyst/Manual/Tutorial/Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/Testing.pod @@ -1,11 +1,11 @@ =head1 NAME -Catalyst::Manual::Tutorial::Testing - Catalyst Tutorial - Part 8: Testing +Catalyst::Manual::Tutorial::Testing - Catalyst Tutorial - Chapter 8: Testing =head1 OVERVIEW -This is B for the Catalyst tutorial. +This is B for the Catalyst tutorial. L @@ -56,15 +56,15 @@ L =head1 DESCRIPTION -You may have noticed that the Catalyst Helper scripts automatically -create basic C<.t> test scripts under the C directory. This part of -the tutorial briefly looks at how these tests can be used to not only -ensure that your application is working correctly at the present time, -but also provide automated regression testing as you upgrade various -pieces of your application over time. +You may have noticed that the Catalyst Helper scripts automatically +create basic C<.t> test scripts under the C directory. This +chapter of the tutorial briefly looks at how these tests can be used +to not only ensure that your application is working correctly at the +present time, but also provide automated regression testing as you +upgrade various pieces of your application over time. -You can checkout the source code for this example from the catalyst -subversion repository as per the instructions in +You can check out the source code for this example from the Catalyst +Subversion repository as per the instructions in L. @@ -90,7 +90,7 @@ The redirection used by the Authentication plugins will cause several failures in the default tests. You can fix this by making the following changes: -1) Change the line in C that read: +1) Change the line in C that reads: ok( request('/')->is_success, 'Request should succeed' ); @@ -116,19 +116,6 @@ environment variable. For example: $ CATALYST_DEBUG=0 prove --lib lib t -B Depending on the versions of various modules you have -installed, you might get some C warnings -- you can -ignore these. If you are following along in Ubuntu 8.10, you can -prevent them by adding C above line 49 in -C to match the following: - - ... - { no strict qw( refs ); - no warnings; - $argnames = \@{"$class\::BASEARGS"} || [ ]; - } - ... - During the C and C tests, you might notice the C warning message. To execute the Pod-related tests, add C to the C @@ -302,10 +289,10 @@ or $ DBIC_TRACE=0 CATALYST_DEBUG=0 prove --lib lib -v t/live_app01.t -Experiment with the C, C -and C<-v> settings. If you find that there are errors, use the -techniques discussed in the "Catalyst Debugging" section (Part 7) to -isolate and fix any problems. +Experiment with the C, C and C<-v> +settings. If you find that there are errors, use the techniques +discussed in the "Catalyst Debugging" section (Chapter 7) to isolate +and fix any problems. If you want to run the test case under the Perl interactive debugger, try a command such as: