php-code-coverage icon indicating copy to clipboard operation
php-code-coverage copied to clipboard

@coversFile and @coversDirectory annotations

Open lukasbestle opened this issue 5 years ago • 0 comments

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 https://github.com/sebastianbergmann/phpunit/pull/18#issuecomment-679695. @dharkness

lukasbestle avatar May 09 '20 08:05 lukasbestle