From: Antoine Musso Date: Sat, 20 Jan 2007 19:15:49 +0000 (+0000) Subject: report number of failed tests as well X-Git-Tag: 1.31.0-rc.0~54275 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=12fb41524efedc2d44eeec890903d4f9e91631bf;p=lhc%2Fweb%2Fwiklou.git report number of failed tests as well --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 021ed623cd..d4f09eb4bb 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -929,7 +929,8 @@ class TestRecorder { if( $success == $total ) { print $this->term->color( 32 ) . "ALL TESTS PASSED!"; } else { - print $this->term->color( 31 ) . "some tests failed!"; + $failed = $total - $success ; + print $this->term->color( 31 ) . "$failed tests failed!"; } print $this->term->reset() . "\n"; return ($success == $total);