Add a pretty PASSED! or FAILED! to the final summary line.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 24 Sep 2004 05:05:53 +0000 (05:05 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 24 Sep 2004 05:05:53 +0000 (05:05 +0000)
maintenance/parserTests.php
maintenance/parserTests.txt

index 8130183..5670d53 100644 (file)
@@ -152,7 +152,13 @@ class ParserTest {
                }
                if( $total > 0 ) {
                        $ratio = IntVal( 100.0 * $success / $total );
-                       print "\nPassed $success of $total tests ($ratio%)\n";
+                       print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) ";
+                       if( $success == $total ) {
+                               print $this->termColor( 32 ) . "PASSED!";
+                       } else {
+                               print $this->termColor( 31 ) . "FAILED!";
+                       }
+                       print $this->termReset() . "\n";
                        return ($success == $total);
                } else {
                        die( "No tests found.\n" );
index 17370ee..7535ac4 100644 (file)
@@ -658,6 +658,9 @@ Plain link to URL
 </p>
 !! end
 
+# I'm fairly sure the expected result here is wrong.
+# We want these to be URL links, not pseudo-pages with URLs for titles....
+# However the current output is also pretty screwy.
 !! test
 Piped link to URL
 !! input