Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
51 lines (44 loc) · 1.62 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
51 lines (44 loc) · 1.62 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
bootstrap="tests/bootstrap-unit.php"
colors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
>
<!--
TWO TEST SUITES:
unit — Pure PHP, no WordPress or database required.
Runs in seconds. Default when no suite is specified.
vendor/bin/phpunit
vendor/bin/phpunit --testsuite unit
integration — Requires a real WordPress test installation + test DB.
Set WP_TESTS_DIR before running:
WP_TESTS_DIR=/tmp/wordpress-tests-lib vendor/bin/phpunit - -testsuite integration
-->
<testsuites>
<testsuite name="unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="integration">
<directory>tests/Integration</directory>
<bootstrap>tests/bootstrap-integration.php</bootstrap>
</testsuite>
</testsuites>
<!--
Code coverage: src/ only — excludes bundled BerlinDB library.
Generate HTML report:
vendor/bin/phpunit --coverage-html coverage/
-->
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory>src/includes</directory>
</exclude>
</source>
</phpunit>