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 #742

Open
lukasbestle opened this issue May 9, 2020 · 0 comments
Open

@coversFile and @coversDirectory annotations #742

lukasbestle opened this issue May 9, 2020 · 0 comments

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 sebastianbergmann/phpunit#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants