-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml
More file actions
84 lines (75 loc) · 3.05 KB
/
phpunit.xml
File metadata and controls
84 lines (75 loc) · 3.05 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false"
cacheResultFile="./tests/.phpunit.cache/test-results"
failOnRisky="true"
failOnWarning="true">
<!-- Test Suites Configuration -->
<testsuites>
<testsuite name="Contact Form 7 to API Test Suite">
<directory>tests/Unit</directory>
<directory>tests/Integration</directory>
<directory>tests/ContactForm</directory>
</testsuite>
<testsuite name="Unit Tests">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Integration Tests">
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="Contact Form Tests">
<directory>tests/ContactForm</directory>
</testsuite>
</testsuites>
<!-- Source Code Coverage -->
<coverage>
<include>
<directory suffix=".php">./includes</directory>
<file>./contact-form-to-api.php</file>
</include>
<exclude>
<directory>./includes/Templates</directory>
<directory>./vendor</directory>
</exclude>
<report>
<html outputDirectory="./tests/coverage/html"/>
<text outputFile="./tests/coverage/coverage.txt"/>
<xml outputDirectory="./tests/coverage/xml"/>
</report>
</coverage>
<!-- Test Result Logging -->
<logging>
<junit outputFile="./tests/logs/junit.xml"/>
<testdoxHtml outputFile="./tests/logs/testdox.html"/>
<testdoxText outputFile="./tests/logs/testdox.txt"/>
</logging>
<!-- PHP Configuration -->
<php>
<!-- WordPress Test Environment -->
<!-- WP_TESTS_* constants are defined by wp-tests-config.php -->
<const name="WP_TESTS_FORCE_KNOWN_BUGS" value="false"/>
<!-- Plugin Specific Constants -->
<const name="CF7_API_TESTING" value="true"/>
<const name="CF7_API_TEST_MODE" value="true"/>
<!-- Contact Form 7 Testing -->
<const name="CF7_TESTING" value="true"/>
<!-- Database Configuration for Tests -->
<server name="DB_NAME" value="cf7_api_test"/>
<server name="DB_USER" value="root"/>
<server name="DB_PASSWORD" value=""/>
<server name="DB_HOST" value="localhost"/>
<!-- Environment Variables -->
<env name="WP_ENVIRONMENT_TYPE" value="test"/>
<env name="WP_DEBUG" value="true"/>
<env name="WP_DEBUG_LOG" value="false"/>
<env name="WP_DEBUG_DISPLAY" value="false"/>
<!-- WordPress Test Suite Directories -->
<env name="WP_TESTS_DIR" value="/tmp/wordpress-tests-lib"/>
<env name="WP_CORE_DIR" value="/tmp/wordpress"/>
</php>
</phpunit>