forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml
More file actions
91 lines (91 loc) · 3.16 KB
/
phpunit.xml
File metadata and controls
91 lines (91 loc) · 3.16 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
bootstrap="./tests/bootstrap.php"
colors="true"
backupGlobals="false"
stopOnFailure="false"
failOnWarning="true"
failOnDeprecation="true"
executionOrder="random"
cacheDirectory=".phpunit.cache"
>
<testsuites>
<!--
Default suite: runs all core tests that don't require special setup.
Use: phpunit (or) phpunit - -testsuite default
-->
<testsuite name="default">
<directory suffix="Test.php">./tests/</directory>
<!-- Exclude plugin integrations (require plugin activation) -->
<exclude>./tests/Integration/ACFTest.php</exclude>
<exclude>./tests/Integration/CoAuthorsTest.php</exclude>
<exclude>./tests/Integration/WPMLTest.php</exclude>
<!-- Exclude multisite tests (require WP_MULTISITE=1) -->
<exclude>./tests/TimberMultisiteTest.php</exclude>
<exclude>./tests/Image/ImageMultisiteTest.php</exclude>
<!-- Exclude isolated tests (must run last, sets constants) -->
<exclude>./tests/Image/ImageIsolatedTest.php</exclude>
</testsuite>
<!--
Multisite suite: tests that require multisite mode.
Use: WP_MULTISITE=1 phpunit - -testsuite multisite
-->
<testsuite name="multisite">
<file>./tests/TimberMultisiteTest.php</file>
<file>./tests/Image/ImageMultisiteTest.php</file>
</testsuite>
<!--
Image suite: all image-related tests for coverage with different editors.
Use: phpunit - -testsuite image (with GD or Imagick)
-->
<testsuite name="image">
<directory suffix="Test.php">./tests/Image/</directory>
<exclude>./tests/Image/ImageIsolatedTest.php</exclude>
<exclude>./tests/Image/ImageMultisiteTest.php</exclude>
</testsuite>
<!--
ACF integration suite.
Use: TIMBER_TEST_PLUGINS=acf phpunit - -testsuite acf
-->
<testsuite name="acf">
<file>./tests/Integration/ACFTest.php</file>
</testsuite>
<!--
Co-Authors Plus integration suite.
Use: TIMBER_TEST_PLUGINS=coauthors-plus phpunit - -testsuite coauthors
-->
<testsuite name="coauthors">
<file>./tests/Integration/CoAuthorsTest.php</file>
</testsuite>
<!--
WPML integration suite.
Use: TIMBER_TEST_PLUGINS=wpml phpunit - -testsuite wpml
-->
<testsuite name="wpml">
<file>./tests/Integration/WPMLTest.php</file>
</testsuite>
<!--
Isolated suite: tests that MUST run last (they set constants).
Use: phpunit - -testsuite isolated
-->
<testsuite name="isolated">
<file>./tests/Image/ImageIsolatedTest.php</file>
</testsuite>
</testsuites>
<logging/>
<extensions>
<bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension">
<parameter name="maximum-duration" value="500"/>
<parameter name="maximum-count" value="10"/>
</bootstrap>
</extensions>
<source ignoreIndirectDeprecations="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory>./vendor</directory>
</exclude>
</source>
</phpunit>