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

Deprecate IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes #5513

Closed
2 tasks
sebastianbergmann opened this issue Sep 16, 2023 · 0 comments
Assignees
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata/attributes type/deprecation Something will be/is deprecated
Milestone

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Sep 16, 2023

Implementing the IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes was a bad idea.

php-code-coverage will continute to support docblock-level @codeCoverageIgnore annotations on units of code such as classes or methods as well as the inline annotations @codeCoverageIgnoreStart, @codeCoverageIgnoreEnd, and @codeCoverageIgnore. Due to the reasons explained in #5235, we have to stick to annotations in comments here instead of using attributes.

Timeline

These changes need to be rolled back:

This will not be implemented:

@sebastianbergmann sebastianbergmann added feature/code-coverage Issues related to code coverage (but not php-code-coverage) type/deprecation Something will be/is deprecated feature/metadata/attributes labels Sep 16, 2023
@sebastianbergmann sebastianbergmann added this to the PHPUnit 10.4 milestone Sep 16, 2023
@sebastianbergmann sebastianbergmann self-assigned this Sep 16, 2023
@sebastianbergmann sebastianbergmann changed the title Deprecate Implement IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes Deprecate IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes Sep 16, 2023
sebastianbergmann added a commit to sebastianbergmann/phpunit-documentation-english that referenced this issue Sep 16, 2023
sebastianbergmann added a commit that referenced this issue Sep 16, 2023
vudaltsov added a commit to vudaltsov/rector-phpunit that referenced this issue Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata/attributes type/deprecation Something will be/is deprecated
Projects
None yet
Development

No branches or pull requests

1 participant