-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpunit.xml.dist
65 lines (59 loc) · 2.32 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.phpunit.de/en/10.5/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory="var/phpunit/cache"
executionOrder="depends,defects"
requireCoverageMetadata="true"
failOnWarning="true"
failOnRisky="true"
defaultTestSuite="all"
>
<testsuites>
<testsuite name="all">
<directory suffix="UnitTest.php">tests</directory>
<directory suffix="FunctionalTest.php">tests</directory>
</testsuite>
<testsuite name="coverage">
<directory suffix="UnitTest.php">tests</directory>
<directory suffix="FunctionalTest.php">tests</directory>
</testsuite>
<testsuite name="unit">
<directory suffix="UnitTest.php">tests</directory>
</testsuite>
<testsuite name="functional">
<directory suffix="FunctionalTest.php">tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
<coverage>
<report>
<clover outputFile="var/phpunit/clover.xml"/>
<html outputDirectory="var/phpunit/html-coverage"/>
</report>
</coverage>
<logging>
<junit outputFile="var/phpunit/junit.xml"/>
</logging>
<extensions>
<bootstrap class="\PhpTuf\ComposerStager\Tests\Coverage\ClearCoverageExtension"/>
<bootstrap class="\PhpTuf\ComposerStager\Tests\Coverage\EnforceCoverageExtension">
<!--
Requiring 100% code coverage here makes it safe to just put a static badge in the README rather than
using some third-party service. If this ever changes, that strategy will have to change accordingly.
-->
<parameter name="required-coverage" value="100"/>
<!-- The testsuites that will enforce coverage requirements, separated by commas, e.g., "one,two". -->
<parameter name="required-testsuites" value="coverage"/>
</bootstrap>
</extensions>
<php>
<ini name="zend.assertions" value="1"/>
</php>
</phpunit>