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

Require coverage metadata in phpunit.xml.dist #1945

Merged
merged 9 commits into from Mar 25, 2024

Conversation

maks-rafalko
Copy link
Member

@maks-rafalko maks-rafalko commented Mar 22, 2024

Require coverage metadata in phpunit.xml.dist.

If any test class will not have CoversClass attribute, tests will fail (test becomes risky, see proof)


Why is it needed?

Does build fail if attribute isn't added to a test class?

Yes, phpunit will return non-zero exit code

In the next PR, I will introduce rector rule that I've used to automatically add CoversClass in this PR, and which will be used on CI here at Infection.

@maks-rafalko maks-rafalko marked this pull request as ready for review March 23, 2024 00:01
Base automatically changed from feature/new-rector to master March 23, 2024 00:05
@maks-rafalko maks-rafalko enabled auto-merge (squash) March 23, 2024 00:17
Copy link
Member

@sanmai sanmai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@maks-rafalko maks-rafalko merged commit 3d6b2b2 into master Mar 25, 2024
55 checks passed
@maks-rafalko maks-rafalko deleted the feature/require-coverage-metadata branch March 25, 2024 01:36
@maks-rafalko
Copy link
Member Author

Thank you @sanmai

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

Successfully merging this pull request may close these issues.

None yet

2 participants