Skip to content

Allow file wildcards to also include subdirectories #5933

@Wulfheart

Description

@Wulfheart

Hello,

in the phpunit.xml file I would like to exclude all directories from the coverage which have e.g. Foo in them. Currently, there is no way, as phpunit/php-file-iterator uses glob which only supports wildcard like * and therefore do not allow such things.
However, I discovered, that two weeks ago @nicDamours created a PR and an issue. I hope that this lands in PHPUnit soon.

 <source>
    <exclude>
        <directory>**/Foo/**</directory>
    </exclude>
 </source>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions