Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Don't assume the location of PHPUnit coverage reports #323

Open
kasparsd opened this issue Jun 26, 2020 · 0 comments
Open

Don't assume the location of PHPUnit coverage reports #323

kasparsd opened this issue Jun 26, 2020 · 0 comments

Comments

@kasparsd
Copy link
Contributor

In

if [ -n "$TRAVIS_PHPUNIT_CONFIG" ]; then
phpunit $( if [ -n "$TRAVIS_PHPUNIT_CONFIG" ]; then echo -c "$TRAVIS_PHPUNIT_CONFIG"; fi ) $(coverage_clover)
elif [ -n "$PHPUNIT_CONFIG" ]; then
phpunit $( if [ -n "$PHPUNIT_CONFIG" ]; then echo -c "$PHPUNIT_CONFIG"; fi ) $(coverage_clover)
else
for project in $( find_phpunit_dirs ); do
(
cd "$project"
phpunit --stop-on-failure $( if [ "$project" == "$INITIAL_DIR" ]; then coverage_clover; fi )
)
done
fi
cd "$PROJECT_DIR"
we pass $(coverage_clover) which is equal to --coverage-clover build/logs/clover.xml if can_generate_coverage_clover returns 1 which is the case whenever a Coveralls config file is found in the project root and coverage task is enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant