Permalink
Browse files

Moving CLI code coverage generation into the CliReporter.

  • Loading branch information...
markstory committed Jan 11, 2010
1 parent 07b43be commit 0803e2a5a69dca16a72145387d2ff5ea8e9b328f
Showing with 8 additions and 0 deletions.
  1. +8 −0 cake/tests/lib/reporter/cake_cli_reporter.php
@@ -152,6 +152,14 @@ function paintFooter($test_name) {
} else {
fwrite(STDOUT, $buffer . $this->getPassCount() . " passes.\n" . $this->_timeStats());
}
+
+ if (
+ isset($this->params['codeCoverage']) &&
+ $this->params['codeCoverage'] &&
+ class_exists('CodeCoverageManager')
+ ) {
+ CodeCoverageManager::report();
+ }
}
/**

0 comments on commit 0803e2a

Please sign in to comment.