-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpunit.xml.dist
70 lines (62 loc) · 2.78 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
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
backupGlobals="true"
bootstrap="./Tests/bootstrap.php"
beStrictAboutTestsThatDoNotTestAnything="true"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
convertNoticesToExceptions="true"
convertDeprecationsToExceptions="true"
colors="true"
forceCoversAnnotation="true"
verbose="true"
>
<testsuites>
<testsuite name="RunFirst">
<!--
Run caching tests separately as they will clear the caches.
-->
<file>./Tests/Internal/Cache/GetClearTest.php</file>
<file>./Tests/Internal/Cache/SetTest.php</file>
<file>./Tests/Internal/NoFileCache/GetClearTest.php</file>
<file>./Tests/Internal/NoFileCache/SetTest.php</file>
<!--
A number of tests need process isolation to allow for recording code coverage on
the setting of function local static variables.
However, using process isolation runs into trouble with PHPUnit 4.x.
Executing these specific tests in a separate testsuite, which is run
before the full test suite, will allow for the code coverage for these methods
to be recorded properly, while still allowing the tests to run on all supported
PHP/PHPUnit/PHPCS combinations.
-->
<file>./Tests/Utils/Namespaces/NamespaceTypeTest.php</file>
</testsuite>
<testsuite name="PHPCSUtils">
<directory suffix="Test.php">./Tests/</directory>
<exclude>Tests/Internal/Cache/GetClearTest.php</exclude>
<exclude>Tests/Internal/Cache/SetTest.php</exclude>
<exclude>Tests/Internal/NoFileCache/GetClearTest.php</exclude>
<exclude>Tests/Internal/NoFileCache/SetTest.php</exclude>
<exclude>Tests/Utils/Namespaces/NamespaceTypeTest.php</exclude>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>compareWithPHPCS</group>
<!-- Extra tests are basically testing PHPCS itself, not PHPCSUtils. -->
<group>xtra</group>
</exclude>
</groups>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="false">
<!-- Not recording coverage for PHPCS23Utils as there is nothing directly testable. -->
<directory suffix=".php">./PHPCSUtils/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" showOnlySummary="true"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>