Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI setup to ensure 100% code coverage #35

Merged
merged 1 commit into from
May 17, 2022

Conversation

clue
Copy link
Owner

@clue clue commented May 17, 2022

This minimal PR updates the CI setup to ensure that PHPUnit always reports 100% code coverage. It does so by instructing PHPUnit to write an additional clover.xml file which we then inspect to ensure all lines are covered.

Accordingly, all future changes need to have matching tests. Any future changes/PRs that add code without adding matching tests will fail. This will hopefully help us steer new contributors towards better code quality. Additionally, this is also a nice starting point to add future mutation tests in a follow-up PR.

See also discussion on Twitter: https://twitter.com/another_clue/status/1526551148643098624

Builds on top of #27

@clue clue added this to the v1.1.0 milestone May 17, 2022
@clue clue requested a review from SimonFrings May 17, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants