Skip to content

Commit e633522

Browse files
jrfnlgrogy
authored andcommitted
PHPUnit: improve configuration
* Add more detailed basic test configuration * Unless `junit` is used somewhere, generating this report for code coverage is unnecessary. * Generating the text report, however, is useful.
1 parent 7c5bd3f commit e633522

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

phpunit.xml.dist

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
backupGlobals="true"
4-
bootstrap="./vendor/autoload.php"
5-
convertDeprecationsToExceptions="true"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.2/phpunit.xsd"
5+
backupGlobals="true"
6+
beStrictAboutTestsThatDoNotTestAnything="true"
7+
bootstrap="./vendor/autoload.php"
8+
colors="true"
9+
convertDeprecationsToExceptions="true"
10+
convertErrorsToExceptions="true"
11+
convertNoticesToExceptions="true"
12+
convertWarningsToExceptions="true"
13+
forceCoversAnnotation="true"
14+
stopOnFailure="false"
15+
verbose="true"
616
>
717

818
<testsuites>
@@ -18,9 +28,9 @@
1828
</filter>
1929

2030
<logging>
21-
<log type="junit" target="build/logs/phpunit.xml"/>
2231
<log type="coverage-clover" target="build/logs/clover.xml"/>
2332
<log type="coverage-html" target="build/coverage/"/>
33+
<log type="coverage-text" target="php://stdout" showOnlySummary="true"/>
2434
</logging>
2535

2636
<php>

0 commit comments

Comments
 (0)