Skip to content

Commit 690e451

Browse files
committed
Enable Xdebug coverage mode explicitly
Added XDEBUG_MODE=coverage environment variable to ensure PHPUnit uses Xdebug for coverage generation. Without this, Xdebug may not activate coverage even though it's installed.
1 parent 0d138ba commit 690e451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Generate code coverage report for current branch
6767
run: |
68-
vendor/bin/phpunit --dont-report-useless-tests --coverage-clover=${{ github.workspace }}/coverage.xml --coverage-text | tee coverage-output.txt
68+
XDEBUG_MODE=coverage vendor/bin/phpunit --dont-report-useless-tests --coverage-clover=${{ github.workspace }}/coverage.xml --coverage-text | tee coverage-output.txt
6969
continue-on-error: false
7070

7171
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)