forked from National-Theatre/drupal-phpunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
98 lines (88 loc) · 4.71 KB
/
phpunit.xml.dist
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copy and rename to phpunit.xml. Customize as needed. -->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
syntaxCheck="false"
bootstrap="includes/bootstrap.php"
stopOnFailure="false"
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true"
>
<php>
<const name="TESTING" value="TRUE"/>
<const name="PREFIX" value=""/>
<!-- These variables may alternatively be set as bash environment variables. -->
<!--DB User must have create/drop permissions-->
<!-- For now, you must create this database yourself before running tests. -->
<!--<const name="UPAL_DB_URL" value="sqlite:/mnt/ramdisk/.ht.sqlite.test"/>-->
<const name="UPAL_DB_URL" value="mysql://drupal:drupal@localhost/drupal"/>
<const name="DB_USER" value="drupal"/>
<const name="DB_PWD" value="drupal"/>
<const name="DB_DB" value="drupal"/>
<!-- Drupal credentials -->
<const name="ADMIN_PASS" value="test1234"/>
<!-- URL for the to-be-tested Drupal. Defaults to http://upal -->
<!-- The url *must* end in upal -->
<const name="UPAL_WEB_URL" value="http://localhost:18888"/>
<!--Hard code a fileystem path to the to-be-tested Drupal. Defaults to cwd.-->
<const name="UPAL_ROOT" value="../docroot/"/>
<!--User must have write permissions to this directory.-->
<!--If not supplied, defaults to sys_get_tmp_dir().-->
<!-- <var name="UPAL_TMP" value="/tmp"/> -->
<!--Uncomment the line below if your path to drush differs from `which drush`. Use absolute path.-->
<!--You currently need 'master' branch of drush after 2011.07.21. Drush 4.6 will be OK - http://drupal.org/node/1105514-->
<var name="UNISH_DRUSH" value="./tests/bin/drush"/>
<!-- Use this to increase the speed of setup -->
<const name="UPAL_USE_DB" value="drupal.sql"/>
<includePath>.</includePath>
</php>
<logging>
<log type="coverage-html" target="../build/coverage/phpunit" title="Drupal"
charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="../build/logs/clover.xml"/>
<log type="coverage-php" target="../build/logs/coverage/phpunit.cov"/>
<log type="junit" target="../build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
<filter>
<blacklist>
<directory suffix=".php">../docroot</directory>
<directory suffix=".inc">../docroot</directory>
<directory suffix=".module">../docroot</directory>
<directory suffix=".install">../docroot</directory>
<directory suffix=".profile">../docroot</directory>
<directory suffix=".engine">../docroot</directory>
</blacklist>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">../docroot/sites/all/modules/custom/*/src</directory>
<directory suffix=".php">../docroot/sites/all/themes/nt</directory>
<!-- Subjective maybe, but given the nature of the development these shouldn't be included
<directory suffix=".inc">../drupal/sites/all/modules/custom</directory>
<directory suffix=".module">../drupal/sites/all/modules/custom</directory>
<directory suffix=".install">../drupal/sites/all/modules/custom</directory>
<directory suffix=".php">../drupal/sites/all/themes</directory>
<directory suffix=".inc">../drupal/sites/all/themes</directory>
<directory suffix=".module">../drupal/sites/all/themes</directory>
<directory suffix=".install">../drupal/sites/all/themes</directory>
-->
<exclude>
<directory suffix=".php">../docroot/sites/all/libraries</directory>
<directory suffix=".tpl.php">../docroot/sites/all/modules/custom</directory>
<directory suffix=".php">../docroot/sites/all/themes/nt/templates</directory>
<directory suffix=".php">../docroot/sites/all/modules/custom/*/tests</directory>
<directory suffix=".php">../docroot/sites/all/modules/custom/*/Tests</directory>
<directory suffix=".php">../docroot/sites/all/themes/*/Tests</directory>
</exclude>
</whitelist>
</filter>
<groups>
<include>
<!--<group>IUTest</group>
<group>Cron</group>
<group>database</group>-->
</include>
<exclude>
<group>broke</group>
<group>wip</group>
</exclude>
</groups>
</phpunit>