Commits

Shlomi Fish  committed 6a1b547

Change the environment variables.

  • Participants
  • Parent commits 54a6d8c

Comments (0)

Files changed (3)

File modules/Test-Run-Plugin-ColorSummary/Changes

 Revision history for Test-Run-Plugin-ColorSummary
 
+0.0200       Thu 20 Jun 22:31:39 IDT 2013
+    * Rename the environment variables to HARNESS_SUMMARY_COLOR_SUCCESS
+    and HARNESS_SUMMARY_COLOR_FAIL in accordance with
+    https://github.com/Perl-Toolchain-Gang/Test-Harness/pull/12 .
+
 0.0121       Tue Feb  9 20:52:24 IST 2010
     * Remove _get_simple_params and _get_private_simple_params.
 
 0.0100_03    Thu Oct  5 16:12:23 IST 2006
     * Fixed the annoying problem with the colored error message followed by some
     empty lines.
-    * Changed to the new Test-Run interface. (%args -> $args) 
+    * Changed to the new Test-Run interface. (%args -> $args)
     * Removed a redundant "use" call.
-    * Changed the T::R::Obj interface to accept one hash ref, instead of 
+    * Changed the T::R::Obj interface to accept one hash ref, instead of
       key1 => "value1", key2 => "value2" (%args) arguments.
 
 0.0100_02    Sun Apr 23 23:07:36 IDT 2006
-    Now over-riding _handle_runtests_error_text instead of 
+    Now over-riding _handle_runtests_error_text instead of
     _handle_runtests_error, per the refactoring of Test::Run::Obj.
-    
+
 0.0100_01    Thu Apr  6 21:29:56 IDT 2006
     First version, released on an unsuspecting world.
 

File modules/Test-Run-Plugin-ColorSummary/lib/Test/Run/CmdLine/Plugin/ColorSummary.pm

 
 =head2 $self->private_backend_plugins()
 
-Returns the Backend Plugins as specified by this plugin. See 
+Returns the Backend Plugins as specified by this plugin. See
 L<Test::Run::CmdLine> for more information.
 
 =cut
 
 =head2 $self->private_direct_backend_env_mapping()
 
-Returns the HARNESS_SUMMARY_COL_FAIL and HARNESS_SUMMARY_COL_SUC
+Returns the HARNESS_SUMMARY_COLOR_FAIL and HARNESS_SUMMARY_COLOR_SUCCESS
 environment variables.
 
 =cut
     return
     [
         {
-            'env' => "HARNESS_SUMMARY_COL_SUC",
+            'env' => "HARNESS_SUMMARY_COLOR_SUCCESS",
             'arg' => "summary_color_success",
         },
         {
-            'env' => "HARNESS_SUMMARY_COL_FAIL",
+            'env' => "HARNESS_SUMMARY_COLOR_FAIL",
             'arg' => "summary_color_failure",
         },
     ];
 
 =over 4
 
-=item HARNESS_SUMMARY_COL_SUC
+=item HARNESS_SUMMARY_COLOR_SUCCESS
 
 This specifies the Term::ANSIColor color for the success line.
 
-=item HARNESS_SUMMARY_COL_FAIL
+=item HARNESS_SUMMARY_COLOR_FAIL
 
 This specifies the Term::ANSIColor color for the failure line
 
 
 =head1 SOURCE AVAILABILITY
 
-The latest source of Test::Run::CmdLine::Plugin::ColorSummary is available from the 
+The latest source of Test::Run::CmdLine::Plugin::ColorSummary is available from the
 Test::Run BerliOS Subversion repository:
 
 L<https://svn.berlios.de/svnroot/repos/web-cpan/Test-Harness-NG/>
 
 =head1 SEE ALSO
 
-L<Test::Run::Obj>, L<Term::ANSIColor>, 
+L<Test::Run::Obj>, L<Term::ANSIColor>,
 L<Test::Run::Plugin::ColorSummary>.
 
 =head1 ACKNOWLEDGEMENTS

File modules/Test-Run-Plugin-ColorSummary/t/02-cmdline-run.t

 
 {
     local %ENV = %ENV;
-    
+
     $ENV{'PERL5LIB'} = $abs_lib.$Config{'path_sep'}.$ENV{'PERL5LIB'};
     delete($ENV{'HARNESS_FILELEAK_IN_DIR'});
     delete($ENV{'HARNESS_VERBOSE'});
     delete($ENV{'HARNESS_DRIVER'});
     delete($ENV{'HARNESS_PLUGINS'});
     delete($ENV{'PROVE_SWITCHES'});
-    delete($ENV{'HARNESS_SUMMARY_COL_SUC'});
-    delete($ENV{'HARNESS_SUMMARY_COL_FAIL'});
+    delete($ENV{'HARNESS_SUMMARY_COLOR_SUCCESS'});
+    delete($ENV{'HARNESS_SUMMARY_COLOR_FAIL'});
 
     $ENV{'HARNESS_PLUGINS'} = "ColorSummary";
-    
+
     {
         my $got = Test::Run::CmdLine::Trap::ProveApp->trap_run(
             {
                 cmdline => [$test_file, $several_oks_file],
             }
         );
-        
+
         my $color = color("bold blue");
 
         # TEST
         my $color = color("bold red");
 
         # TEST
-        $got->field_like("stderr", qr/\Q${color}\EFailed 1\/1 test scripts/, 
+        $got->field_like("stderr", qr/\Q${color}\EFailed 1\/1 test scripts/,
             qq{Found colored "Failed 1/1" string}
         );
     }
     {
-        local $ENV{'HARNESS_SUMMARY_COL_SUC'} = "green";
-        local $ENV{'HARNESS_SUMMARY_COL_FAIL'} = "yellow";
+        local $ENV{'HARNESS_SUMMARY_COLOR_SUCCESS'} = "green";
+        local $ENV{'HARNESS_SUMMARY_COLOR_FAIL'} = "yellow";
         my $got = Test::Run::CmdLine::Trap::ProveApp->trap_run(
             {
                 cmdline => [$test_file, $several_oks_file],
 
         # TEST
         $got->field_like("stdout",
-            qr/\Q${color}\EAll tests successful\./, 
+            qr/\Q${color}\EAll tests successful\./,
             "'All tests successful.' string in user-speced color"
         );
     }
     {
-        local $ENV{'HARNESS_SUMMARY_COL_SUC'} = "green";
-        local $ENV{'HARNESS_SUMMARY_COL_FAIL'} = "yellow";
+        local $ENV{'HARNESS_SUMMARY_COLOR_SUCCESS'} = "green";
+        local $ENV{'HARNESS_SUMMARY_COLOR_FAIL'} = "yellow";
         my $got = Test::Run::CmdLine::Trap::ProveApp->trap_run(
             {
                 cmdline => [$one_fail_file],