Skip to content

Commit

Permalink
add Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chongkan committed Apr 23, 2024
1 parent 437beea commit b13317f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit tests"
"test": "vendor/bin/phpunit tests --coverage-html coverage --colors"
},
"config": {
"sort-packages": true
Expand Down
14 changes: 14 additions & 0 deletions phpUnit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" verbose="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<report>
<html outputDirectory="coverage/"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit + Feature Tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>
14 changes: 14 additions & 0 deletions phpunit.xml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
colors="true"
verbose="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Unit + Feature Tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="coverage/" showUncoveredFiles="true"/>
</logging>
</phpunit>

0 comments on commit b13317f

Please sign in to comment.