8000 Erroneous default prefix preventing files to be whitelisted · Issue #28 · leanphp/behat-code-coverage · GitHub
[go: up one dir, main page]

Skip to content

Erroneous default prefix preventing files to be whitelisted #28

@ek9

Description

@ek9

There is a bug when whitelisting files via configuration. If you do not supply prefix parameter, it defaulted to src, which only whitelisted files starting with src.

For example:

whitelist:
  include:
    directories:
      'src':
        'suffix': '.php'

Would result in the extension adding default 'prefix': 'src'. This would break whitelisting and would result in the following configuration instead:

whitelist:
  include:
    directories:
      'src':
        'suffix': '.php'
        'prefix': 'src'

This has to be fixed.

The README and behat.yml.dist should be updated accordingly to include all information regarding the parameters.

Related issues #21
Semi related issues #12 #11

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0