@@ -40,17 +40,7 @@ default:
4040 extensions :
4141 LeanPHP\BehathpSpec\CodeCoverage\CodeCoverageExtension :
4242 auth : ~
43- # create:
44- # method: POST
45- # path: /
46- # read:
47- # method: GET
48- # path: /
49- # delete:
50- # method: DELETE
51- # path: /
5243 drivers :
53- # - remote
5444 - local
5545 filter : ~
5646 report :
@@ -59,15 +49,15 @@ default:
5949 target : build/behat-coverage
6050` ` `
6151
62- This will sufficient to enable Code Coverage generation and provideby using defaults
63- provided by the extension . This extension supports various [configuration
64- options](#Configuration Options). For a fully annotated example configuration
65- file check [Configuration section](#Configuration).
52+ This will sufficient to enable Code Coverage generation in ` html` format in
53+ ` build/behat-coverage ` directory . This extension supports various
54+ [configuration options](#Configuration Options). For a fully annotated example
55+ configuration file check [Configuration section](#Configuration).
6656
6757# # Usage
6858
6959If you execute `bin/behat` command, you will see code coverage generated in
70- `target` directory (in `html` format) :
60+ `target` (i.e. `build/behat-coverage`) directory (in `html` format) :
7161
7262 $ bin/behat
7363
@@ -83,32 +73,71 @@ Options).
8373# ...
8474default:
8575 extensions:
86- # enable leanphp\b ehat-code-coverage extension
8776 LeanPHP\B ehathpSpec\C odeCoverage\C odeCoverageExtension:
88- auth: ~
89- #create:
90- #method: POST
91- #path: /
92- #read:
93- #method: GET
94- #path: /
95- #delete:
96- #method: DELETE
97- #path: /
77+ # http auth (optional)
78+ auth: ~
79+ # select which driver to use when gatherig coverage data
9880 drivers:
99- #- remote
100- - local
101- filter: ~
81+ - local # local Xdebug driver
82+ # filter options
83+ filter:
84+ forceCoversAnnotation: false
85+ mapTestClassNameToCoveredClassName: false
86+ whitelist:
87+ addUncoveredFilesFromWhitelist: true
88+ processUncoveredFilesFromWhitelist: false
89+ include:
90+ directories:
91+ 'src':
92+ prefix: 'src'
93+ 'tests':
94+ prefix: 'src'
95+ blacklist:
96+ include:
97+ directories:
98+ 'vendor':
99+ prefix: 'vendor'
100+ # report configuration
102101 report:
103- format: html
102+ # report format (html, clover, php, text)
103+ format: html
104+ # report options
104105 options:
105- target: build/behat-coverage
106+ target:: build/behat-coverage/html
106107` ` `
107108
108109# ## Configuration Options
109110
110- * `auth` (optional) HTTP/misc authentication options.
111- - TBA
111+ * `auth` - HTTP authentication options (optional).
112+ - ` create` (`method` / `path`) - *TBA*.
113+ - ` read` (`method` / `path`) - *TBA*.
114+ - ` delete` (`method` / `path`) - *TBA*.
115+ - `drivers` - a list of drivers for gathering code coverage data :
116+ - ` remote` - remote Xdebug driver.
117+ - ` local` - local Xdebug driver.
118+ - `filter` - various filter options :
119+ - ` forceCoversAnnotation` - *TBA*
120+ - ` mapTestClassNameToCoveredClassName` - *TBA*
121+ - `whiltelist` - whitelist specific options :
122+ - ` addUncoveredFilesFromWhiltelist` - *TBA*
123+ - ` processUncoveredFilesFromWhitelist` - *TBA*
124+ - `include` - a list of files or directories to include in whitelist :
125+ - ` directories` - key containing whitelisted directories to include.
126+ - ` files` - key containing whitelisted files to include.
127+ - `exclude` - a list of files or directories to exclude from whitelist :
128+ - ` directories` - key containing whitelisted directories to exclude.
129+ - ` files` - key containing whitelisted files to exclude.
130+ - `blacklist` - blacklist specific options :
131+ - `include` - a list of files or directories to include in blacklist :
132+ - ` directories` - key containing blacklisted directories to include.
133+ - ` files` - key containing blacklisted files to include.
134+ - `exclude` - a list of files or directories to exclude from blacklist :
135+ - ` directories` - key containing blacklisted directories to exclude.
136+ - ` files` - key containing blacklisted files to exclude.
137+ - `report` - reporter options :
138+ - ` format` - specify report format (`html`, `clover`, `php`, `text`)
139+ - `options` - format options :
140+ - ` target` - target/output directory
112141
113142# # Authors
114143
0 commit comments