Skip to content
This repository
Browse code

CakeTextReporter now outputs code coverage.

  • Loading branch information...
commit 489958ea48f43e1832130d527ceb76ca4b22ee8f 1 parent 9989327
Mark Story authored January 10, 2010
7  cake/tests/lib/reporter/cake_text_reporter.php
@@ -62,6 +62,13 @@ function paintFooter($test_name) {
62 62
 		if (function_exists('memory_get_peak_usage')) {
63 63
 			echo 'Peak memory use: (in bytes): ' . number_format(memory_get_peak_usage()) . "\n";
64 64
 		}
  65
+		if (
  66
+			isset($this->params['codeCoverage']) && 
  67
+			$this->params['codeCoverage'] && 
  68
+			class_exists('CodeCoverageManager')
  69
+		) {
  70
+			CodeCoverageManager::report();
  71
+		}
65 72
 	}
66 73
 
67 74
 /**

0 notes on commit 489958e

Please sign in to comment.
Something went wrong with that request. Please try again.