Skip to content

Commit

Permalink
Merge coverage reports to clover XML if dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
townxelliot committed Jan 15, 2025
1 parent f63a1ec commit e29f396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/app/scripts/api_unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ case "$1" in
;;
esac

#php vendor/phpunit/phpcov/phpcov merge --clover "./tests/coverage/api-unit-tests.xml" "./tests/coverage"
if [ -d ./tests/coverage ] ; then
php vendor/phpunit/phpcov/phpcov merge --clover "./tests/coverage/api-unit-tests.xml" "./tests/coverage"
fi

0 comments on commit e29f396

Please sign in to comment.