Skip to content

Commit

Permalink
makefile: Attempt to fix code coverage
Browse files Browse the repository at this point in the history
Sounds like it might have been broken by xdebug 2 → 3 bump.
Cargo culted from contributte/invoice@ca51236
  • Loading branch information
jtojnar committed May 7, 2024
1 parent 2afcd08 commit 2e61237
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ phpstan:
vendor/bin/phpstan analyse -c phpstan.neon

tests:
vendor/bin/codecept build
vendor/bin/codecept run

coverage:
ifdef GITHUB_ACTION
phpdbg -qrr vendor/bin/codecept run --coverage-xml
vendor/bin/codecept build
XDEBUG_MODE=coverage vendor/bin/codecept run --coverage --coverage-xml
else
phpdbg -qrr vendor/bin/codecept run --coverage-html
vendor/bin/codecept build
XDEBUG_MODE=coverage vendor/bin/codecept run --coverage --coverage-html
endif

0 comments on commit 2e61237

Please sign in to comment.