Преглед изворни кода

Add debug switch to phpunit

Rob Allen пре 12 година
родитељ
комит
352cf93184
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      tests/runalltests.php

+ 3 - 1
tests/runalltests.php

@@ -53,7 +53,7 @@ $result = 0;
 // run through phpunit
 // run through phpunit
 while(list(, $file)=each($files)) {
 while(list(, $file)=each($files)) {
     echo "Executing {$file}" . PHP_EOL;
     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 PHP_EOL;
     echo "Finished executing {$file}" . 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);
 exit($result);