Show
Ignore:
Timestamp:
03/11/2008 03:45:27 AM (10 months ago)
Author:
Geert
Message:

Added unit_test.hide_passed config option to allow a more compact test report by hiding the passed tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/unit_test/views/kohana_unit_test.php

    r2278 r2283  
    109109                        foreach ($methods as $method => $result): 
    110110 
    111                         ?> 
     111                                // Hide passed tests from report 
     112                                if ($result === TRUE AND $hide_passed === TRUE) 
     113                                        continue; 
     114 
     115                                ?> 
    112116 
    113117                                <tr class="<?php echo text::alternate('', 'k-altrow') ?>"> 
     
    118122                                                <td class="k-passed"><strong><?php echo Kohana::lang('unit_test.passed') ?></strong></td> 
    119123 
    120                                         <?php else: /* $result == Kohana_Unit_Test_Exception */ ?> 
     124                                        <?php elseif ($result instanceof Kohana_Unit_Test_Exception): ?> 
    121125 
    122126                                                <td class="k-failed">