forked from Elgg/Elgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml
90 lines (79 loc) · 3.84 KB
/
phpunit.xml
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
<phpunit bootstrap="./engine/tests/phpunit/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<php>
<!-- You can specify your own settings.php path -->
<!-- <env name="ELGG_SETTINGS_FILE" value="path/to/settings.php"/> -->
<!-- or configure individual settings via env-->
<!--
<env name="ELGG_DB_HOST" value="localhost"/>
<env name="ELGG_DB_NAME" value=""/>
<env name="ELGG_DB_USER" value=""/>
<env name="ELGG_DB_PASS" value=""/>
<env name="ELGG_DB_PREFIX" value=""/>
<env name="ELGG_DB_ENCODING" value="utf8mb4"/>
<env name="ELGG_MEMCACHE" value="1"/>
<env name="ELGG_MEMCACHE_SERVER1_HOST" value="127.0.0.1"/>
<env name="ELGG_MEMCACHE_SERVER1_PORT" value="11211"/>
<env name="ELGG_MEMCACHE_SERVER2_HOST" value=""/>
<env name="ELGG_MEMCACHE_SERVER2_PORT" value=""/>
<env name="ELGG_MEMCACHE_NAMESPACE_PREFIX" value="elgg_"/>
<env name="ELGG_REDIS" value="1"/>
<env name="ELGG_REDIS_SERVER1_HOST" value="127.0.0.1"/>
<env name="ELGG_REDIS_SERVER1_PORT" value="6379"/>
<env name="ELGG_WWWROOT" value="http://localhost/"/>
<env name="ELGG_SEEDER_LOCAL_IMAGE_FOLDER" value=""/>
-->
<ini name="memory_limit" value="-1"/>
<ini name="max_execution_time" value="0"/>
<ini name="max_input_time" value="0"/>
</php>
<testsuites>
<testsuite name="unit">
<directory>./engine/tests/phpunit/unit/</directory>
</testsuite>
<testsuite name="integration">
<directory>./engine/tests/phpunit/integration/</directory>
</testsuite>
<testsuite name="plugins-unit">
<directory>./mod/*/tests/phpunit/unit/</directory>
</testsuite>
<testsuite name="plugins-integration">
<directory>./mod/*/tests/phpunit/integration/</directory>
</testsuite>
</testsuites>
<filter>
<!-- Do not use processUncoveredFilesFromWhitelist="true" because action and view files can not be processed -->
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./actions</directory>
<directory suffix=".php">./engine/classes</directory>
<directory suffix=".php">./engine/lib</directory>
<directory suffix=".php">./mod/*/actions</directory>
<directory suffix=".php">./mod/*/lib</directory>
<directory suffix=".php">./mod/*/classes</directory>
<directory suffix="start.php">./mod/*</directory>
<exclude>
<directory suffix=".php">./elgg-config</directory>
<directory suffix=".php">./install</directory>
<directory suffix=".php">*/vendor/*</directory>
<directory suffix=".php">*/vendors/*</directory>
<directory suffix=".php">*/tests/*</directory>
<directory suffix=".php">*/bower_components/*</directory>
<directory suffix=".php">*/node_modules/*</directory>
<directory suffix=".php">*/docs/*</directory>
<directory suffix=".php">*/grunt/*</directory>
<directory suffix=".php">*/engine/schema/*</directory>
<directory suffix=".php">*/engine/lib/upgrades/*</directory>
<directory suffix=".php">./languages</directory>
<directory suffix=".php">./views</directory>
<directory suffix=".php">./mod/*/languages</directory>
<directory suffix=".php">./mod/*/views</directory>
<file>./engine/lib/deprecated-*.php</file>
<file>./engine/lib/constants.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>