File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,31 @@ composer require --dev aeliot-tm/phpunit-codecoverage-baseline
14
14
Usage
15
15
-----
16
16
17
+ ### Compare Clover report with baseline
18
+
17
19
1 . Add baseline file to the project. See [ example] ( docs/phpunit.clover.baseline.json ) .
18
20
2 . Run your tests with [ configured] ( https://phpunit.readthedocs.io/en/9.5/configuration.html#the-report-element )
19
21
code coverage Clover report or with [ command line option] ( https://phpunit.readthedocs.io/en/9.5/textui.html?highlight=clover#command-line-options ) .
20
22
``` shell
21
23
phpunit --coverage-clover ' build/coverage/clover.xml' tests/
22
24
```
23
- 3 . Call [ script] ( bin/phpunit_clover_compare ) .
25
+ 3 . Call [ script] ( bin/pccb_clover_compare ) .
24
26
``` shell
25
- vendor/bin/phpunit_clover_compare
27
+ vendor/bin/pccb_clover_compare
26
28
```
27
29
It accepts options:
28
30
29
31
| Full name | Short name | Description | Default value |
30
32
| --------------| ------------| ---------------------------| --------------------------------|
31
33
| ` --baseline ` | ` -b ` | Path to the baseline | ` phpunit.clover.baseline.json ` |
32
34
| ` --clover ` | ` -c ` | Path to the Clover report | ` build/coverage/clover.xml ` |
35
+
36
+
37
+ ### Build baseline for Clover report
38
+
39
+ 1 . Run your tests.
40
+ 2 . Call [ script] ( bin/pccb_clover_build_baseline ) .
41
+ ``` shell
42
+ vendor/bin/pccb_clover_build_baseline
43
+ ```
44
+ It accepts same options like previous command.
You can’t perform that action at this time.
0 commit comments