-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
47 lines (47 loc) · 1.6 KB
/
phpunit.xml.dist
File metadata and controls
47 lines (47 loc) · 1.6 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
<?xml version="1.0"?>
<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"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
defaultTestSuite="default"
>
<testsuites>
<!-- Default test suite to run all tests -->
<testsuite name="default">
<directory suffix="Test.php">./tests/php/includes</directory>
</testsuite>
<!-- Fast unit tests — no WordPress DB/API required -->
<testsuite name="unit">
<file>./tests/php/includes/PluginTest.php</file>
<file>./tests/php/includes/ClassNameParserTest.php</file>
<file>./tests/php/includes/FunctionsTest.php</file>
</testsuite>
<!-- Integration tests — require a running WordPress environment -->
<testsuite name="integration">
<file>./tests/php/includes/BootstrapTest.php</file>
<file>./tests/php/includes/HooksTest.php</file>
<file>./tests/php/includes/SettingsTest.php</file>
<file>./tests/php/includes/UserSettingsTest.php</file>
<file>./tests/php/includes/ClassPresetTest.php</file>
<file>./tests/php/includes/BodyClassesTest.php</file>
<file>./tests/php/includes/ThemeClassesTest.php</file>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">includes</directory>
</include>
<report>
<html outputDirectory="coverage/php"/>
</report>
</coverage>
<logging>
<junit outputFile="junit.xml"/>
</logging>
</phpunit>