Skip to content

Commit

Permalink
#21 Re add v9 description to help users which are still using an old …
Browse files Browse the repository at this point in the history
…version; fix one of the renamed attributes
  • Loading branch information
1stthomas committed Dec 9, 2024
1 parent 3bdd428 commit d3d24f2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@ Basic configuration for the checkout action works like this:
```
IMPORTANT: v1.0.0 currently has NO support for a custom checkout path.

You can automatically generate a clover report file with every PHPUnit run by adding the following configuration to your phpunit.xml file:
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:
```xml
<coverage>
<coverage cacheDirectory=".phpunit.cache/code-coverage" processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<clover outputFile="clover.xml" />
</report>
</coverage>
```
Since PHPUnit v10.1 file and folder filtering must be declared with a `source` element:
```xml
<coverage includeUncoveredFiles="true">
<report>
<clover outputFile="clover.xml" />
</report>
Expand Down

0 comments on commit d3d24f2

Please sign in to comment.