Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
55 lines (52 loc) · 1.72 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
55 lines (52 loc) · 1.72 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
<?xml version="1.0"?>
<!--
PHPUnit configuration for Zero Spam for WordPress (single site).
Run through bin/test.sh (composer test), not vendor/bin/phpunit directly:
the script downloads WordPress and exports where it is.
Multisite: phpunit-multisite.xml.dist.
-->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/phpunit/bootstrap.php"
backupGlobals="false"
colors="true"
convertDeprecationsToExceptions="true"
failOnWarning="true"
failOnRisky="true"
beStrictAboutTestsThatDoNotTestAnything="true"
>
<testsuites>
<testsuite name="unit">
<directory prefix="test-" suffix=".php">tests/phpunit/unit</directory>
</testsuite>
<testsuite name="integration">
<directory prefix="test-" suffix=".php">tests/phpunit/integration</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<!-- Needs a network; runs in phpunit-multisite.xml.dist. -->
<group>ms-required</group>
<!-- Documents a confirmed bug and fails until it is fixed; run with composer test:defects. -->
<group>known-defect</group>
</exclude>
</groups>
<php>
<!-- What this configuration tests; the bootstrap refuses a mismatch. -->
<const name="ZEROSPAM_TESTS_EXPECT_MULTISITE" value="false"/>
<env name="WP_MULTISITE" value="0" force="true"/>
<env name="WP_TESTS_DB_NAME" value="zerospam_tests"/>
</php>
<coverage includeUncoveredFiles="true">
<include>
<file>wordpress-zero-spam.php</file>
<directory suffix=".php">core</directory>
<directory suffix=".php">includes</directory>
<directory suffix=".php">modules</directory>
</include>
<exclude>
<directory>includes/templates</directory>
</exclude>
</coverage>
</phpunit>