Make WordPress Core

source: tags/4.3.31/phpunit.xml.dist

Last change on this file was 30298, checked in by boonebgorges, 11 years ago

Exclude external-http tests when running phpunit.

The external-http tests are very slow, and Wp_Http functionality is fairly
isolated, so the benefits of skipping these tests by default outweigh the
risks.

A grunt phpunit:external-http subtask has been added, to ensure that the
tests are executed during exhaustive runs of the test suite, such as in
continuous integration.

Fixes #30304.

File size: 1.3 KB
Line 
1<phpunit
2        bootstrap="tests/phpunit/includes/bootstrap.php"
3        backupGlobals="false"
4        colors="true"
5        >
6    <testsuites>
7        <!-- Default test suite to run all tests -->
8        <testsuite>
9            <directory suffix=".php">tests/phpunit/tests</directory>
10            <exclude>tests/phpunit/tests/actions/closures.php</exclude>
11            <exclude>tests/phpunit/tests/image/editor.php</exclude>
12            <exclude>tests/phpunit/tests/image/editor_gd.php</exclude>
13            <exclude>tests/phpunit/tests/image/editor_imagick.php</exclude>
14            <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
15            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
16            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor_gd.php</file>
17            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor_imagick.php</file>
18        </testsuite>
19    </testsuites>
20    <groups>
21        <exclude>
22            <group>ajax</group>
23            <group>external-http</group>
24        </exclude>
25    </groups>
26    <logging>
27        <log type="junit" target="tests/phpunit/build/logs/junit.xml" logIncompleteSkipped="false"/>
28    </logging>
29    <php>
30        <const name="WP_RUN_CORE_TESTS" value="1" />
31    </php>
32</phpunit>
Note: See TracBrowser for help on using the repository browser.