diff --git a/test.sh b/test.sh index c2aa8f2..ee3c969 100644 --- a/test.sh +++ b/test.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash # run tests -docker exec -ti reactphp-pimf-api curl -LsS http://codeception.com/codecept.phar -o /usr/local/bin/codecept -docker exec -ti reactphp-pimf-api chmod a+x /usr/local/bin/codecept -tests_response=$(docker exec -ti reactphp-pimf-api codecept run --colors) +docker exec -ti reactphp-pimf-api php composer.phar require "codeception/codeception" +tests_response=$(docker exec -ti reactphp-pimf-api vendor/codeception/codeception/codecept run --colors) test_ok=$(echo "$tests_response" | grep "OK" | wc -l) echo "$tests_response"