Skip to content

Commit d3d24f2

Browse files
committed
#21 Re add v9 description to help users which are still using an old version; fix one of the renamed attributes
1 parent 3bdd428 commit d3d24f2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,20 @@ Basic configuration for the checkout action works like this:
2222
```
2323
IMPORTANT: v1.0.0 currently has NO support for a custom checkout path.
2424

25-
You can automatically generate a clover report file with every PHPUnit run by adding the following configuration to your phpunit.xml file:
25+
You can automatically generate a clover report file with every PHPUnit run by adding specific configuration to your phpunit.xml file. For PHPUnit v9 use something like following:
2626
```xml
27-
<coverage>
27+
<coverage cacheDirectory=".phpunit.cache/code-coverage" processUncoveredFiles="true">
28+
<include>
29+
<directory suffix=".php">src</directory>
30+
</include>
31+
<report>
32+
<clover outputFile="clover.xml" />
33+
</report>
34+
</coverage>
35+
```
36+
Since PHPUnit v10.1 file and folder filtering must be declared with a `source` element:
37+
```xml
38+
<coverage includeUncoveredFiles="true">
2839
<report>
2940
<clover outputFile="clover.xml" />
3041
</report>

0 commit comments

Comments
 (0)