|
1 | | -<phpunit |
2 | | - bootstrap="tests/phpunit/includes/bootstrap.php" |
3 | | - backupGlobals="false" |
4 | | - colors="true" |
5 | | - beStrictAboutTestsThatDoNotTestAnything="true" |
6 | | - > |
7 | | - <testsuites> |
8 | | - <!-- Default test suite to run all tests --> |
9 | | - <testsuite name="default"> |
10 | | - <directory suffix=".php">tests/phpunit/tests</directory> |
11 | | - <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude> |
12 | | - </testsuite> |
13 | | - <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last --> |
14 | | - <testsuite name="restapi-autosave"> |
15 | | - <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file> |
16 | | - </testsuite> |
17 | | - </testsuites> |
18 | | - <groups> |
19 | | - <exclude> |
20 | | - <group>ajax</group> |
21 | | - <group>ms-files</group> |
22 | | - <group>ms-required</group> |
23 | | - <group>external-http</group> |
24 | | - </exclude> |
25 | | - </groups> |
26 | | - <logging> |
27 | | - <log type="junit" target="tests/phpunit/build/logs/junit.xml" /> |
28 | | - </logging> |
29 | | - <php> |
30 | | - <const name="WP_RUN_CORE_TESTS" value="1" /> |
31 | | - </php> |
32 | | - <listeners> |
33 | | - <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php"> |
34 | | - <arguments> |
35 | | - <array> |
36 | | - <element key="slow_threshold"> |
37 | | - <integer>150</integer> |
38 | | - </element> |
39 | | - </array> |
40 | | - </arguments> |
41 | | - </listener> |
42 | | - </listeners> |
43 | | - <filter> |
44 | | - <whitelist addUncoveredFilesFromWhitelist="true"> |
45 | | - <directory suffix=".php">src</directory> |
46 | | - <exclude> |
47 | | - <!-- Third party library exclusions --> |
48 | | - <directory suffix=".php">src/wp-includes/ID3</directory> |
49 | | - <directory suffix=".php">src/wp-includes/IXR</directory> |
50 | | - <directory suffix=".php">src/wp-includes/random_compat</directory> |
51 | | - <directory suffix=".php">src/wp-includes/Requests</directory> |
52 | | - <directory suffix=".php">src/wp-includes/SimplePie</directory> |
53 | | - <directory suffix=".php">src/wp-includes/Text</directory> |
54 | | - |
55 | | - <file>src/wp-admin/includes/class-ftp*</file> |
56 | | - <file>src/wp-admin/includes/class-pclzip.php</file> |
57 | | - <file>src/wp-admin/includes/deprecated.php</file> |
58 | | - <file>src/wp-admin/includes/ms-deprecated.php</file> |
59 | | - |
60 | | - <file>src/wp-includes/atomlib.php</file> |
61 | | - <file>src/wp-includes/class-IXR.php</file> |
62 | | - <file>src/wp-includes/class-json.php</file> |
63 | | - <file>src/wp-includes/class-phpass.php</file> |
64 | | - <file>src/wp-includes/class-phpmailer.php</file> |
65 | | - <file>src/wp-includes/class-pop3.php</file> |
66 | | - <file>src/wp-includes/class-requests.php</file> |
67 | | - <file>src/wp-includes/class-simplepie.php</file> |
68 | | - <file>src/wp-includes/class-smtp.php</file> |
69 | | - <file>src/wp-includes/class-snoopy.php</file> |
70 | | - <file>src/wp-includes/deprecated.php</file> |
71 | | - <file>src/wp-includes/ms-deprecated.php</file> |
72 | | - <file>src/wp-includes/pluggable-deprecated.php</file> |
73 | | - <file>src/wp-includes/rss.php</file> |
74 | | - </exclude> |
75 | | - </whitelist> |
76 | | - </filter> |
77 | | -</phpunit> |
| 1 | +<phpunit |
| 2 | + bootstrap="tests/phpunit/includes/bootstrap.php" |
| 3 | + backupGlobals="false" |
| 4 | + colors="true" |
| 5 | + beStrictAboutTestsThatDoNotTestAnything="true" |
| 6 | + > |
| 7 | + <testsuites> |
| 8 | + <!-- Default test suite to run all tests --> |
| 9 | + <testsuite name="default"> |
| 10 | + <directory suffix=".php">tests/phpunit/tests</directory> |
| 11 | + <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude> |
| 12 | + </testsuite> |
| 13 | + <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last --> |
| 14 | + <testsuite name="restapi-autosave"> |
| 15 | + <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file> |
| 16 | + </testsuite> |
| 17 | + </testsuites> |
| 18 | + <groups> |
| 19 | + <exclude> |
| 20 | + <group>ajax</group> |
| 21 | + <group>ms-files</group> |
| 22 | + <group>ms-required</group> |
| 23 | + <group>external-http</group> |
| 24 | + </exclude> |
| 25 | + </groups> |
| 26 | + <logging> |
| 27 | + <log type="junit" target="tests/phpunit/build/logs/junit.xml" /> |
| 28 | + </logging> |
| 29 | + <php> |
| 30 | + <const name="WP_RUN_CORE_TESTS" value="1" /> |
| 31 | + </php> |
| 32 | + <listeners> |
| 33 | + <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php"> |
| 34 | + <arguments> |
| 35 | + <array> |
| 36 | + <element key="slow_threshold"> |
| 37 | + <integer>150</integer> |
| 38 | + </element> |
| 39 | + </array> |
| 40 | + </arguments> |
| 41 | + </listener> |
| 42 | + </listeners> |
| 43 | + <filter> |
| 44 | + <whitelist addUncoveredFilesFromWhitelist="true"> |
| 45 | + <directory suffix=".php">src</directory> |
| 46 | + <exclude> |
| 47 | + <!-- Third party library exclusions --> |
| 48 | + <directory suffix=".php">src/wp-includes/ID3</directory> |
| 49 | + <directory suffix=".php">src/wp-includes/IXR</directory> |
| 50 | + <directory suffix=".php">src/wp-includes/random_compat</directory> |
| 51 | + <directory suffix=".php">src/wp-includes/Requests</directory> |
| 52 | + <directory suffix=".php">src/wp-includes/SimplePie</directory> |
| 53 | + <directory suffix=".php">src/wp-includes/Text</directory> |
| 54 | + |
| 55 | + <file>src/wp-admin/includes/class-ftp*</file> |
| 56 | + <file>src/wp-admin/includes/class-pclzip.php</file> |
| 57 | + <file>src/wp-admin/includes/deprecated.php</file> |
| 58 | + <file>src/wp-admin/includes/ms-deprecated.php</file> |
| 59 | + |
| 60 | + <file>src/wp-includes/atomlib.php</file> |
| 61 | + <file>src/wp-includes/class-IXR.php</file> |
| 62 | + <file>src/wp-includes/class-json.php</file> |
| 63 | + <file>src/wp-includes/class-phpass.php</file> |
| 64 | + <file>src/wp-includes/class-phpmailer.php</file> |
| 65 | + <file>src/wp-includes/class-pop3.php</file> |
| 66 | + <file>src/wp-includes/class-requests.php</file> |
| 67 | + <file>src/wp-includes/class-simplepie.php</file> |
| 68 | + <file>src/wp-includes/class-smtp.php</file> |
| 69 | + <file>src/wp-includes/class-snoopy.php</file> |
| 70 | + <file>src/wp-includes/deprecated.php</file> |
| 71 | + <file>src/wp-includes/ms-deprecated.php</file> |
| 72 | + <file>src/wp-includes/pluggable-deprecated.php</file> |
| 73 | + <file>src/wp-includes/rss.php</file> |
| 74 | + </exclude> |
| 75 | + </whitelist> |
| 76 | + </filter> |
| 77 | +</phpunit> |
0 commit comments