forked from netgen/ezpublish-legacy
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathphpunit.xml
More file actions
113 lines (96 loc) · 4.16 KB
/
Copy pathphpunit.xml
File metadata and controls
113 lines (96 loc) · 4.16 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<!--
phpunit.xml — Exponential 6.0.13 / eZ Publish Legacy PHPUnit 10 configuration.
Added in 6.0.13-alpha2 to fix complete test suite failure caused by missing
bootstrap when upgrading from PHPUnit 3.7 to PHPUnit 10.0.
See doc/bc/6.0/phpunitvXXXX.md for full explanation of what broke and why.
Usage:
php vendor/bin/phpunit # run all suites
php vendor/bin/phpunit - -testsuite security # security tests only
php vendor/bin/phpunit - -testsuite kernel-classes # kernel class tests only
php vendor/bin/phpunit - -list-tests # list all test methods
php vendor/bin/phpunit - -list-test-files # list all test files
php tests/runtests.php - -dsn=mysql://u:p@h/db - -db-per-test
-->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/13.0/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
displayDetailsOnIncompleteTests="true"
displayDetailsOnSkippedTests="true"
failOnEmptyTestSuite="false"
cacheDirectory=".phpunit.cache"
failOnPhpunitWarning="false"
>
<testsuites>
<testsuite name="security">
<directory suffix="Test.php">tests/tests/kernel/classes/security</directory>
</testsuite>
<testsuite name="kernel-classes">
<directory suffix="Test.php">tests/tests/kernel/classes</directory>
<exclude>tests/tests/kernel/classes/security</exclude>
<exclude>tests/tests/kernel/classes/clusterfilehandlers/eZClusterFileHandlerAbstractTest.php</exclude>
<exclude>tests/tests/kernel/classes/clusterfilehandlers/eZClusterStaleCacheTest.php</exclude>
<exclude>tests/tests/kernel/classes/clusterfilehandlers/eZDBBasedClusterFileHandlerAbstractTest.php</exclude>
</testsuite>
<testsuite name="kernel-content">
<directory suffix="Test.php">tests/tests/kernel/content</directory>
</testsuite>
<testsuite name="kernel-datatypes">
<directory suffix="Test.php">tests/tests/kernel/datatypes</directory>
<exclude>tests/tests/kernel/datatypes/eZDatatypeAbstractTest.php</exclude>
</testsuite>
<testsuite name="lib">
<directory suffix="Test.php">tests/tests/lib</directory>
<exclude>tests/tests/lib/ezdb/mongodb</exclude>
</testsuite>
<!--
MongoDB adapter unit tests — no live DB required.
Run: php vendor/bin/phpunit - -testsuite mongodb
-->
<testsuite name="mongodb">
<file>tests/tests/lib/ezdb/mongodb/expMongoDBAdapterTest.php</file>
</testsuite>
<!--
MongoDB + MySQL live integration tests — require running servers.
Run: php vendor/bin/phpunit - -testsuite mongodb-live
-->
<testsuite name="mongodb-live">
<file>tests/tests/lib/ezdb/mongodb/expMongoDBIntegrationTest.php</file>
</testsuite>
</testsuites>
<groups>
<exclude>
<!--
Tests tagged @group database require a live database connection.
Run them separately:
php tests/runtests.php - -db-per-test - -dsn=mysql://u:p@host/db
-->
<group>database</group>
<!--
Tests tagged @group mongodb-live require running MongoDB + MySQL.
Run them separately:
php vendor/bin/phpunit - -testsuite mongodb-live
-->
<group>mongodb-live</group>
</exclude>
</groups>
<source>
<include>
<directory suffix=".php">lib</directory>
<directory suffix=".php">kernel</directory>
</include>
</source>
<coverage>
<report>
<html outputDirectory="coverage"/>
</report>
</coverage>
<php>
<env name="EZP_TEST_ENVIRONMENT" value="1"/>
<!-- PHP_INI_SCAN_DIR is set at runtime by tests/bootstrap.php so PHPUnit's
isolated-process children can find tests/xdebug.ini without hardcoding
the repository path. -->
</php>
</phpunit>