Skip to content

Commit

Permalink
Adjust phpunit.xml to support old coverage format for php 8.1 and php…
Browse files Browse the repository at this point in the history
…unit 10
  • Loading branch information
Kurt Friars committed Oct 22, 2024
1 parent 1a089c9 commit 09bc3a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
],
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --coverage-clover coverage",
"test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --coverage-clover=coverage/clover.xml",
"format": "vendor/bin/pint"
},
"config": {
Expand All @@ -79,4 +79,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
10 changes: 4 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<coverage processUncoveredFiles="true" includeUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
Expand All @@ -30,9 +33,4 @@
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit 09bc3a1

Please sign in to comment.