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

Remove CodeCoverageAnnotationIgnorer #1517

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented May 4, 2021

This PR:

Since we have a very explicit annotation @infection-ignore-all (added in #1468) that, again, very explicit on the purpose, and works not only for methods, but for most kinds of statements, let's remove @codeCoverageIgnore ignorer, that not only implicit (you may only want to ignore a piece of code temporarily, and only ignore) but also messes up the metrics (hides otherwise-uncovered mutations).

@sanmai sanmai requested a review from maks-rafalko May 4, 2021 01:27
sanmai added 2 commits May 4, 2021 10:29
Without annotation:

    4 mutations were generated:
       3 mutants were killed
       0 mutants were not covered by tests
       1 covered mutants were not detected

With annotation:

    2 mutations were generated:
       2 mutants were killed
       0 mutants were not covered by tests
       0 covered mutants were not detected
Copy link
Member

@sidz sidz 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 added this to the 0.23.0 milestone May 4, 2021
@sanmai sanmai merged commit bf27a84 into infection:master May 4, 2021
@sanmai sanmai deleted the pr/2021-05/PhpUnitCodeCoverageAnnotationIgnorer branch May 4, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants