Moving CLI code coverage generation into the CliReporter.

This commit is contained in:
Mark Story 2010-01-11 18:04:08 -05:00
parent 07b43be125
commit 0803e2a5a6

View file

@ -152,6 +152,14 @@ class CakeCliReporter extends CakeBaseReporter {
} else {
fwrite(STDOUT, $buffer . $this->getPassCount() . " passes.\n" . $this->_timeStats());
}
if (
isset($this->params['codeCoverage']) &&
$this->params['codeCoverage'] &&
class_exists('CodeCoverageManager')
) {
CodeCoverageManager::report();
}
}
/**