Skip to content

Commit 6f245e7

Browse files
authored
Merge pull request #426 from wp-cli/code-coverage
Code coverage support
2 parents 32744a4 + 2e3010a commit 6f245e7

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.gitignore

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require-dev": {
2020
"wp-cli/scaffold-command": "^1.2 || ^2",
21-
"wp-cli/wp-cli-tests": "^4"
21+
"wp-cli/wp-cli-tests": "^4.3.9"
2222
},
2323
"suggest": {
2424
"ext-json": "Used for reading and generating JSON translation files",

phpunit.xml.dist

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
convertDeprecationsToExceptions="true"
1313
colors="true"
1414
verbose="true">
15-
<testsuite name="wp-cli/i18n-command tests">
16-
<directory suffix="Test.php">tests</directory>
17-
</testsuite>
15+
<testsuites>
16+
<testsuite name="wp-cli/i18n-command tests">
17+
<directory suffix="Test.php">tests</directory>
18+
</testsuite>
19+
</testsuites>
1820

19-
<filter>
20-
<whitelist processUncoveredFilesFromWhitelist="true">
21+
<coverage processUncoveredFiles="false">
22+
<include>
2123
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
24+
</include>
25+
</coverage>
2426
</phpunit>

0 commit comments

Comments
 (0)