Skip to content

Commit

Permalink
chore: Minor configuration modification of PHPUnit and Infection.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 16, 2022
1 parent a4373f8 commit 87a16f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"php": ">= 7.4"
},
"require-dev": {
"ext-pcov": "*",
"drupol/php-conventions": "^5",
"infection/infection": "^0.26",
"phpbench/phpbench": "^1.2",
Expand Down
1 change: 1 addition & 0 deletions infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"src"
]
},
"tmpDir": "build/logs/coverage/coverage-xml",
"logs": {
"github": true,
"text": "build/logs/infection/infection.log",
Expand Down
9 changes: 7 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
bootstrap="./vendor/autoload.php"
colors="true"
executionOrder="random"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="false"
beStrictAboutCoversAnnotation="true"
forceCoversAnnotation="false"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
verbose="true"
>
<testsuites>
Expand All @@ -14,12 +19,12 @@
</testsuite>
</testsuites>

<coverage pathCoverage="true" processUncoveredFiles="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<xml outputDirectory="build/logs/coverage/coverage-xml"/>
<xml outputDirectory="build/logs/coverage/coverage-xml/infection"/>
<html outputDirectory="build/logs/coverage/html-coverage"/>
<clover outputFile="build/logs/coverage/clover.xml"/>
</report>
Expand Down

0 comments on commit 87a16f8

Please sign in to comment.