report number of failed tests as well
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 20 Jan 2007 19:15:49 +0000 (19:15 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 20 Jan 2007 19:15:49 +0000 (19:15 +0000)
maintenance/parserTests.inc

index 021ed62..d4f09eb 100644 (file)
@@ -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);