Skip to content

Commit de7fb82

Browse files
authored
Restored root phpunit configuration file (#644)
It's very useful as a global config when working within an IDE as it allows for running all the tests from different modules without having to reconfigure the your IDE for each module.
1 parent 305cb58 commit de7fb82

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

phpunit.xml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="./modules/system/tests/bootstrap/app.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
13+
>
14+
<coverage>
15+
<include>
16+
<directory suffix=".php">./modules/</directory>
17+
</include>
18+
<exclude>
19+
<file>./modules/backend/routes.php</file>
20+
<file>./modules/cms/routes.php</file>
21+
<file>./modules/system/routes.php</file>
22+
<directory suffix=".php">./modules/backend/database</directory>
23+
<directory suffix=".php">./modules/cms/database</directory>
24+
<directory suffix=".php">./modules/system/database</directory>
25+
</exclude>
26+
</coverage>
27+
<testsuites>
28+
<testsuite name="Winter CMS Test Suite">
29+
<directory>./modules/system</directory>
30+
<directory>./modules/cms</directory>
31+
<directory>./modules/backend</directory>
32+
</testsuite>
33+
</testsuites>
34+
<php>
35+
<env name="APP_ENV" value="testing"/>
36+
<env name="CACHE_DRIVER" value="array"/>
37+
<env name="SESSION_DRIVER" value="array"/>
38+
</php>
39+
</phpunit>

0 commit comments

Comments
 (0)