Browse Source

Add debug switch to phpunit

Rob Allen 12 years ago
parent
commit
352cf93184
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/runalltests.php

+ 3 - 1
tests/runalltests.php

@@ -53,7 +53,7 @@ $result = 0;
 // run through phpunit
 while(list(, $file)=each($files)) {
     echo "Executing {$file}" . PHP_EOL;
-    system($PHPUNIT . ' --stderr -d memory_limit=-1 -d error_reporting=E_ALL\&E_STRICT -d display_errors=1 ' . escapeshellarg($file), $c_result);
+    system($PHPUNIT . ' --debug --stderr -d memory_limit=-1 -d error_reporting=E_ALL\&E_STRICT -d display_errors=1 ' . escapeshellarg($file), $c_result);
     echo PHP_EOL;
     echo "Finished executing {$file}" . PHP_EOL;
     
@@ -63,4 +63,6 @@ while(list(, $file)=each($files)) {
     }
 }
 
+
+echo PHP_EOL . "All done. Result: $result" . PHP_EOL;
 exit($result);