Skip to content

Commit 66afab7

Browse files
committed
Fix coverage.xml generation by calling PHPUnit directly
The 'composer test -- --coverage-clover=...' wasn't passing the arguments correctly to PHPUnit, causing coverage.xml not to be generated. Changed to call vendor/bin/phpunit directly with all required flags including --dont-report-useless-tests from the composer script.
1 parent f42573d commit 66afab7

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-
composer test -- --coverage-clover=${{ github.workspace }}/coverage.xml --coverage-text | tee coverage-output.txt
68+
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)