Changeset 7248


Ignore:
Timestamp:
04/25/10 17:33:49 (2 years ago)
Author:
MichaelTempest
Message:

Item1326: Show which tests passed unexpectedly, since the unexpected result is worth investigating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/lib/Unit/TestRunner.pm

    r7219 r7248  
    291291            $action .= '$passes++;'; 
    292292            if ( $tester->{expect_failure} ) { 
    293                 $action .= '$this->{unexpected_passes}++;'; 
     293                print "*** Unexpected pass\n"; 
     294                $action .= '$this->{unexpected_passes}++;' 
     295                         . 'push( @{ $this->{failures} }, "' 
     296                         . quotemeta( $test )  
     297                         . '\\nUnexpected pass" );';  
    294298            } 
    295299        } 
Note: See TracChangeset for help on using the changeset viewer.