Changeset 922

Show
Ignore:
Timestamp:
07/22/08 14:58:03 (1 month ago)
Author:
kaste
Message:

Added switch for the coverage html report (needs xdebug).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/kaste/PHPUnit_TestSuite/scripts/test_runner.php

    r921 r922  
    6464                case '-?': 
    6565                    $this->drawHelp(); 
     66                    break; 
     67                case '--c': 
     68                case '--cover': 
     69                    if (!extension_loaded('xdebug')) continue; 
     70                    $this->options['reportDirectory'] = array_shift($args); 
    6671                    break; 
    6772                case '-': 
     
    172177 
    173178test_runner [-v|?] [-|+group] [-|+method] [-|+filename] <filenames|folders> 
    174    -v        verbose 
    175    -?        this help 
    176    -+group   see below 
     179   -v              verbose 
     180   -?              this help 
     181   -+group         see below 
    177182   -+method 
    178183   -+file 
     184   --cover folder  write html-coverage-report to the specified folder  
    179185 
    180186This script creates TestSuites on-the fly and runs them.  
     
    205211> test_runner tests/ +test*Cast*Null 
    206212 
     213 
    207214BANNER; 
     215        echo '(xdebug '.(extension_loaded('xdebug') ? 'enabled)' : 'disabled)'); 
    208216        exit; 
    209217