-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Refactor how filtering works #386
Comments
Also, if you exclude a directory,
even if there are no files that have previously been white-listed within the directory, PHP_CodeCoverage_Filter::removeDirectoryFromWhitelist will collect the entire file list and attempt to unset the whitelist of each file. |
@sebastianbergmann Is your proposal here that we should have a single flat map of files in an array or object instead of a recursive nested directory tree? Would that array or object then be included with the serialized output? |
That is the status quo and what I meant in #386 (comment) when I wrote "list (array) of files that are to be included in the code coverage report". |
Right now,
File_Iterator
is used to crawl the filesystem for files that match the criteria specified in the (PHPUnit) configuration resulting in a list (array) of files that are to be included in the code coverage report. This crawling is responsible for a slowdown in the startup of PHPUnit.It would be better to store the information ("all
*.php
files in directorysrc
) instead and match the filenames against that instead of a list generated through crawling.The text was updated successfully, but these errors were encountered: