Skip to content

Commit

Permalink
Tweak phpunit config.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenconti committed May 23, 2020
1 parent 12aa8f3 commit 8f22378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@
"lint": [
"php-cs-fixer fix ./src"
],
"test": [
"./vendor/bin/phpunit"
]
"test": "./vendor/bin/phpunit",
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage"
},
"config": {
"optimize-autoloader": true,
Expand Down
6 changes: 4 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printer">
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
Expand All @@ -28,6 +28,8 @@
<env name="MAIL_DRIVER" value="array"/>
</php>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/coverage.xml"/>
Expand Down

0 comments on commit 8f22378

Please sign in to comment.