Skip to content

Commit 87a16f8

Browse files
committed
chore: Minor configuration modification of PHPUnit and Infection.
1 parent a4373f8 commit 87a16f8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"php": ">= 7.4"
3131
},
3232
"require-dev": {
33+
"ext-pcov": "*",
3334
"drupol/php-conventions": "^5",
3435
"infection/infection": "^0.26",
3536
"phpbench/phpbench": "^1.2",

infection.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"src"
66
]
77
},
8+
"tmpDir": "build/logs/coverage/coverage-xml",
89
"logs": {
910
"github": true,
1011
"text": "build/logs/infection/infection.log",

phpunit.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
bootstrap="./vendor/autoload.php"
55
colors="true"
66
executionOrder="random"
7+
beStrictAboutChangesToGlobalState="true"
8+
beStrictAboutOutputDuringTests="false"
9+
beStrictAboutCoversAnnotation="true"
10+
forceCoversAnnotation="false"
711
failOnWarning="true"
812
failOnRisky="true"
13+
failOnEmptyTestSuite="true"
914
verbose="true"
1015
>
1116
<testsuites>
@@ -14,12 +19,12 @@
1419
</testsuite>
1520
</testsuites>
1621

17-
<coverage pathCoverage="true" processUncoveredFiles="true">
22+
<coverage processUncoveredFiles="true">
1823
<include>
1924
<directory suffix=".php">src</directory>
2025
</include>
2126
<report>
22-
<xml outputDirectory="build/logs/coverage/coverage-xml"/>
27+
<xml outputDirectory="build/logs/coverage/coverage-xml/infection"/>
2328
<html outputDirectory="build/logs/coverage/html-coverage"/>
2429
<clover outputFile="build/logs/coverage/clover.xml"/>
2530
</report>

0 commit comments

Comments
 (0)