-
Notifications
You must be signed in to change notification settings - Fork 23
How to define multiple directories to include? #21
Copy link
Copy link
Closed
Labels
Description
- the project has
phpfiles in multiple directories. How do I defineinclude.directorieswhen I have a list of them? - some of our php files have extension of 'inc'. How can I include them?
With the following, I get this error:
~/projects/uwce/www (develop)$ composer wip
> vendor/bin/behat --config behat.yml --colors --tags wip
In ScalarNode.php line 36:
Invalid type for path "testwork.code_coverage.filter.whitelist.include.directories.src.prefix". Expected scalar, but got array.
Script vendor/bin/behat --config behat.yml --colors --tags wip handling the wip event returned with error code 1
~/projects/uwce/www (develop)$
My Extension definition
LeanPHP\Behat\CodeCoverage\Extension:
auth: ~
drivers:
- local
filter:
forceCoversAnnotation: false
mapTestClassNameToCoveredClassName: false
whitelist:
addUncoveredFilesFromWhitelist: true
processUncoveredFilesFromWhitelist: false
include:
directories:
'src':
prefix: ['modelViews', "utilities", "models", "modelRepositories","services", "controllers", "views"]
'tests':
prefix: 'src'
blacklist:
include:
directories:
'vendor':
prefix: 'vendor'
report:
format: html
options:
target: build/behat-coverage
Reactions are currently unavailable