Skip to content

Commit 0e79121

Browse files
authored
Merge pull request #236 from wp-cli/phpunit-coverage-config
Allow collecting PHPUnit coverage
2 parents 892c5d7 + 3b2194e commit 0e79121

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ phpunit.xml
1212
phpcs.xml
1313
.phpcs.xml
1414
.phpunit.result.cache
15+
build/logs

phpunit.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
<directory prefix="Test" suffix=".php">tests/tests</directory>
1313
</testsuite>
1414
</testsuites>
15+
16+
<coverage processUncoveredFiles="false">
17+
<include>
18+
<directory suffix=".php">src</directory>
19+
</include>
20+
</coverage>
1521
</phpunit>

0 commit comments

Comments
 (0)