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

@coversFile and @coversDirectory annotations #5983

Closed
lukasbestle opened this issue May 9, 2020 · 1 comment
Closed

@coversFile and @coversDirectory annotations #5983

lukasbestle opened this issue May 9, 2020 · 1 comment
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata Issues related to attributes and annotations type/enhancement A new idea that should be implemented

Comments

@lukasbestle
Copy link

lukasbestle commented May 9, 2020

Sometimes a test covers code that is not a class, for example a template file or a configuration file. It is currently not possible to explicitly collect coverage data for such files, especially when the forceCoversAnnotation option is used.

I propose two new annotations @coversFile and @coversDirectory for that use-case.

Also see #18 (comment). @dharkness

@sebastianbergmann sebastianbergmann transferred this issue from sebastianbergmann/phpunit May 9, 2020
@sebastianbergmann sebastianbergmann changed the title Feature request: @coversFile and @coversDirectory annotations @coversFile and @coversDirectory annotations May 9, 2020
@sebastianbergmann sebastianbergmann added the type/enhancement A new idea that should be implemented label Oct 26, 2022
@sebastianbergmann sebastianbergmann transferred this issue from sebastianbergmann/php-code-coverage Oct 10, 2024
@sebastianbergmann sebastianbergmann added feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata Issues related to attributes and annotations labels Oct 10, 2024
@sebastianbergmann
Copy link
Owner

Duplicate of #3794.

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 Issues related to attributes and annotations type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants