Permalink
Browse files

Adding time and memory use to CakeCliReporter

  • Loading branch information...
1 parent 7b5adde commit f52900f8181e6834746ac077263f3a23455c0493 @markstory markstory committed Jan 10, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/lib/reporter/cake_cli_reporter.php
@@ -117,6 +117,10 @@ function paintFooter($test_name) {
$buffer .= ", " . $this->getExceptionCount() . " exceptions";
}
$buffer .= ".\n";
+ $buffer .= 'Time taken by tests (in seconds): ' . $this->_timeDuration . "\n";
+ if (function_exists('memory_get_peak_usage')) {
+ $buffer .= 'Peak memory use: (in bytes): ' . number_format(memory_get_peak_usage()) . "\n";
+ }
fwrite(STDOUT, $buffer);
} else {
fwrite(STDOUT, $buffer . $this->getPassCount() . " passes.\n");

0 comments on commit f52900f

Please sign in to comment.