From ff474b0f4cc3a96e8ffef14d11701fa22e089cc3 Mon Sep 17 00:00:00 2001 From: Vincent Gao Date: Thu, 9 Dec 2021 10:52:20 +1100 Subject: [PATCH] test coverage --- .circleci/drupal_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/drupal_tests.sh b/.circleci/drupal_tests.sh index 9a3d927..e794016 100755 --- a/.circleci/drupal_tests.sh +++ b/.circleci/drupal_tests.sh @@ -9,3 +9,9 @@ ahoy cli "/app/vendor/bin/phpunit" echo "==> Run submodule tests" ahoy cli "/app/vendor/bin/phpunit modules/tide_*" + +echo "==> Generate coverage report" +ahoy cli "mkdir -p /app/coverage-report" +ahoy cli "mkdir -p /tmp/artifacts/coverage-report" +ahoy cli "phpdbg -qrr vendor/bin/phpunit --coverage-html /coverage-report" +docker cp $(docker-compose ps -q cli):/app/coverage-report /tmp/artifacts/coverage-report