Prettify test runner a bit:
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Jan 2007 09:00:45 +0000 (09:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Jan 2007 09:00:45 +0000 (09:00 +0000)
* cleaner line breaks at start and end
* 'ALL TESTS PASSED!' and 'some tests failed!' so people stop whinging about the giant 'FAILED!'
and remove some redundant includes

maintenance/parserTests.inc
maintenance/parserTests.php

index 3559b98..7df2c70 100644 (file)
@@ -29,9 +29,6 @@ $options = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record' );
 $optionsWithArgs = array( 'regex' );
 
 require_once( 'commandLine.inc' );
-require_once( "$IP/includes/ObjectCache.php" );
-require_once( "$IP/includes/BagOStuff.php" );
-require_once( "$IP/includes/Hooks.php" );
 require_once( "$IP/maintenance/parserTestsParserHook.php" );
 require_once( "$IP/maintenance/parserTestsStaticParserHook.php" );
 require_once( "$IP/maintenance/parserTestsParserTime.php" );
@@ -932,9 +929,9 @@ class TestRecorder {
                $ratio = wfPercent( 100 * $success / $total );
                print $this->term->color( 1 ) . "Passed $success of $total tests ($ratio)... ";
                if( $success == $total ) {
-                       print $this->term->color( 32 ) . "PASSED!";
+                       print $this->term->color( 32 ) . "ALL TESTS PASSED!";
                } else {
-                       print $this->term->color( 31 ) . "FAILED!";
+                       print $this->term->color( 31 ) . "some tests failed!";
                }
                print $this->term->reset() . "\n";
                return ($success == $total);
@@ -1031,6 +1028,7 @@ class DbTestRecorder extends TestRecorder  {
                } else {
                        print "No previous test runs to compare against.\n";
                }
+               print "\n";
                parent::report();
        }
 
index efdd07c..274356f 100644 (file)
@@ -64,7 +64,7 @@ if( isset( $options['file'] ) ) {
 
 # Print out software version to assist with locating regressions
 $version = SpecialVersion::getVersion();
-echo( "This is MediaWiki version {$version}.\n" );
+echo( "This is MediaWiki version {$version}.\n\n" );
 $ok = $tester->runTestsFromFiles( $files );
 
 exit ($ok ? 0 : -1);