From 552cdf60a3542160c115c4c4c069ed3838fb344e Mon Sep 17 00:00:00 2001 From: orakili Date: Fri, 27 Sep 2024 16:21:55 +0000 Subject: [PATCH] chore: another attempt at running tests with coverage this time Refs: OPS-10828 --- .github/workflows/test.yml | 6 +++--- phpunit.xml | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e1c642..dc360f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,9 +73,9 @@ jobs: - name: Run module tests run: | - cd modules/custom/ocha_uimc - XDEBUG_MODE=coverage ../../../vendor/bin/phpunit --bootstrap ../../../core/tests/bootstrap.php --coverage-clover ../../../clover.xml -c phpunit.xml ./ - cd ../../.. + XDEBUG_MODE=coverage vendor/bin/phpunit --bootstrap core/tests/bootstrap.php \ + --coverage-clover ./clover.xml \ + -c modules/custom/ocha_uimc/phpunit.xml modules/custom/ocha_uimc - name: Monitor coverage id: coveralls diff --git a/phpunit.xml b/phpunit.xml index aed9f65..316a534 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -17,14 +17,19 @@ pathCoverage="false" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="false"> - + src . + modules/custom/ocha_uimc/src + modules/custom/ocha_uimc/ + src tests + modules/custom/ocha_uimc/src + modules/custom/ocha_uimc/tests