Skip to content

Commit 913993e

Browse files
committed
Enable code coverage with whitelist and ignore output
1 parent 69d0fba commit 913993e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ vendor/
66
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
77
composer.lock
88
.php_cs.cache
9+
coverage.clover

phpunit.xml.dist

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,14 @@
55
<directory>./tests/</directory>
66
</testsuite>
77
</testsuites>
8-
</phpunit>
8+
9+
<filter>
10+
<whitelist processUncoveredFilesFromWhitelist="true">
11+
<directory suffix=".php">src</directory>
12+
</whitelist>
13+
<blacklist>
14+
<directory>vendor</directory>
15+
<directory>./tests</directory>
16+
</blacklist>
17+
</filter>
18+
</phpunit>

0 commit comments

Comments
 (0)