Skip to content

Commit

Permalink
chore: another attempt at running tests with coverage this time
Browse files Browse the repository at this point in the history
Refs: OPS-10828
  • Loading branch information
orakili committed Sep 27, 2024
1 parent af3d665 commit 552cdf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="false">
<!-- Relative to this file! -->
<include>
<!-- Relative to this file! -->
<directory suffix=".php">src</directory>
<directory suffix=".module">.</directory>
<directory suffix=".php">modules/custom/ocha_uimc/src</directory>
<directory suffix=".module">modules/custom/ocha_uimc/</directory>
</include>
<exclude>
<!-- Relative to this file! -->
<directory suffix="Interface.php">src</directory>
<directory>tests</directory>
<directory suffix="Interface.php">modules/custom/ocha_uimc/src</directory>
<directory>modules/custom/ocha_uimc/tests</directory>
</exclude>
<report>
<clover outputFile="clover.xml"/>
Expand Down

0 comments on commit 552cdf6

Please sign in to comment.