diff --git a/bin/test/run-api-tests.sh b/bin/test/run-api-tests.sh index 5d256c33..75a51387 100755 --- a/bin/test/run-api-tests.sh +++ b/bin/test/run-api-tests.sh @@ -10,11 +10,9 @@ vendor/bin/zend-expressive-swoole start -d sleep 2 vendor/bin/phpunit --order-by=random -c phpunit-api.xml --testdox --colors=always - -# Capture tests exit code testsExitCode=$? vendor/bin/zend-expressive-swoole stop # Exit this script with the same code as the tests. If tests failed, this script has to fail -exit testsExitCode +exit $testsExitCode