Skip to content

Commit

Permalink
add Coverage filter 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chongkan committed Apr 23, 2024
1 parent a1d3705 commit d26f405
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions phpUnit.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?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>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="coverage/"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit + Feature Tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<phpunit bootstrap="vendor/autoload.php"
colors="true"
verbose="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Unit + Feature Tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="coverage/" showUncoveredFiles="true"/>
</logging>
</phpunit>

0 comments on commit d26f405

Please sign in to comment.