|
|
@@ -7,18 +7,18 @@ $projectName = basename(getcwd());
|
|
|
|
|
|
echo PHP_EOL;
|
|
|
echo '开始执行单元测试...'.PHP_EOL;
|
|
|
-exec('phpunit Unit', $output, $returnCode);
|
|
|
+//exec('phpunit Unit', $output, $returnCode);
|
|
|
exec('phpunit Services', $output, $returnCode);
|
|
|
-exec('phpunit Feature', $output, $returnCode);
|
|
|
-exec('phpunit Inventory', $output, $returnCode);
|
|
|
-exec('phpunit OrderIssues', $output, $returnCode);
|
|
|
-exec('phpunit StoreService', $output, $returnCode);
|
|
|
+//exec('phpunit Feature', $output, $returnCode);
|
|
|
+//exec('phpunit Inventory', $output, $returnCode);
|
|
|
+//exec('phpunit OrderIssues', $output, $returnCode);
|
|
|
+//exec('phpunit StoreService', $output, $returnCode);
|
|
|
|
|
|
printf("测试结果: ", $projectName);
|
|
|
echo PHP_EOL;
|
|
|
|
|
|
if ($returnCode !== 0) {
|
|
|
-// printf(" ( %s ) %s%2\$s", json_encode($output), PHP_EOL);
|
|
|
+ printf(" ( %s ) %s%2\$s", json_encode($output), PHP_EOL);
|
|
|
print_r("<pre>");
|
|
|
print_r($output);
|
|
|
printf(" x 测试不通过,Git Push 已终止!\n");
|