Development

Changeset 20691

You must first sign up to be able to contribute.

Changeset 20691

Show
Ignore:
Timestamp:
08/02/09 14:11:15 (5 years ago)
Author:
bschussek
Message:

Fixed: LimeTestSuite::run() returns the correct test status

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/branches/2.0-experimental/lib/LimeTestSuite.php

    r20493 r20691  
    2929    $this->options['base_dir'] = realpath($this->options['base_dir']); 
    3030 
    31     $this->output = $this->options['output'] ? $this->options['output'] : $this->getDefaultOutput($this->options['force_colors']); 
     31    $output = $this->options['output'] ? $this->options['output'] : $this->getDefaultOutput($this->options['force_colors']); 
     32 
     33    $this->output = new LimeOutputInspectable($output); 
    3234  } 
    3335 
     
    7779    $this->output->flush(); 
    7880 
    79     // should return correct error value 
    80     return true; 
     81    $failed = $this->output->getFailed(); 
     82    $errors = $this->output->getErrors(); 
     83    $warnings = $this->output->getWarnings(); 
     84    $skipped = $this->output->getSkipped(); 
     85 
     86    return 0 == ($failed + $errors + $warnings + $skipped); 
    8187  } 
    8288}