forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
312 lines (304 loc) · 13.3 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="lib/phpunit/phpunit.xsd"
bootstrap="lib/phpunit/bootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
backupGlobals="false"
backupStaticAttributes="false"
cacheResult="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutOutputDuringTests="true"
>
<php>
<!--<const name="PHPUNIT_LONGTEST" value="1"/> uncomment to execute also slow or otherwise expensive tests-->
<const name="PHPUNIT_SEQUENCE_START" value=""/>
<!--Following constants instruct tests to fetch external test files from alternative location
or skip tests if empty, clone https://github.com/moodlehq/moodle-exttests to local web server-->
<!--<const name="TEST_EXTERNAL_FILES_HTTP_URL" value="http://download.moodle.org/unittest"/>
uncomment and alter to fetch external test files from alternative location-->
<!--<const name="TEST_EXTERNAL_FILES_HTTPS_URL" value="https://download.moodle.org/unittest"/>
uncomment and alter to fetch external test files from alternative location-->
</php>
<!--All core suites need to be manually added here-->
<testsuites>
<testsuite name="core_phpunit_testsuite">
<directory suffix="_test.php">lib/phpunit/tests</directory>
<exclude>lib/phpunit/tests/classes</exclude>
</testsuite>
<testsuite name="core_test_testsuite">
<directory suffix="_test.php">lib/testing/tests</directory>
<exclude>lib/testing/tests/classes</exclude>
</testsuite>
<testsuite name="core_ddl_testsuite">
<directory suffix="_test.php">lib/ddl/tests</directory>
<exclude>lib/ddl/tests/classes</exclude>
</testsuite>
<testsuite name="core_dml_testsuite">
<directory suffix="_test.php">lib/dml/tests</directory>
<exclude>lib/dml/tests/classes</exclude>
</testsuite>
<testsuite name="core_testsuite">
<directory suffix="_test.php">lib/tests</directory>
<exclude>lib/tests/classes</exclude>
<!-- <directory suffix="_test.php">lib/ajax/tests</directory> -->
</testsuite>
<testsuite name="core_external_testsuite">
<directory suffix="_test.php">lib/external/tests</directory>
<exclude>lib/external/tests/classes</exclude>
</testsuite>
<testsuite name="core_favourites_testsuite">
<directory suffix="_test.php">favourites/tests</directory>
<exclude>favourites/tests/classes</exclude>
</testsuite>
<testsuite name="core_form_testsuite">
<directory suffix="_test.php">lib/form/tests</directory>
<exclude>lib/form/tests/classes</exclude>
</testsuite>
<testsuite name="core_files_testsuite">
<directory suffix="_test.php">lib/filestorage/tests</directory>
<directory suffix="_test.php">lib/filebrowser/tests</directory>
<directory suffix="_test.php">files/tests</directory>
<exclude>lib/filestorage/tests/classes</exclude>
<exclude>lib/filebrowser/tests/classes</exclude>
<exclude>files/tests/classes</exclude>
</testsuite>
<testsuite name="core_filter_testsuite">
<directory suffix="_test.php">filter/tests</directory>
<exclude>filter/tests/classes</exclude>
</testsuite>
<testsuite name="core_role_testsuite">
<directory suffix="_test.php">admin/roles/tests</directory>
<exclude>admin/roles/tests/classes</exclude>
</testsuite>
<testsuite name="core_cohort_testsuite">
<directory suffix="_test.php">cohort/tests</directory>
<exclude>cohort/tests/classes</exclude>
</testsuite>
<testsuite name="core_grades_testsuite">
<directory suffix="_test.php">lib/grade/tests</directory>
<directory suffix="_test.php">grade/tests</directory>
<directory suffix="_test.php">grade/grading/tests</directory>
<directory suffix="_test.php">grade/import/csv/tests</directory>
<exclude>lib/grade/tests/classes</exclude>
<exclude>grade/tests/classes</exclude>
<exclude>grade/grading/tests/classes</exclude>
<exclude>grade/import/csv/tests/classes</exclude>
</testsuite>
<testsuite name="core_analytics_testsuite">
<directory suffix="_test.php">analytics/tests</directory>
<exclude>analytics/tests/classes</exclude>
</testsuite>
<testsuite name="core_availability_testsuite">
<directory suffix="_test.php">availability/tests</directory>
<exclude>availability/tests/classes</exclude>
</testsuite>
<testsuite name="core_backup_testsuite">
<directory suffix="_test.php">backup/controller/tests</directory>
<directory suffix="_test.php">backup/converter/moodle1/tests</directory>
<directory suffix="_test.php">backup/moodle2/tests</directory>
<directory suffix="_test.php">backup/tests</directory>
<directory suffix="_test.php">backup/util</directory>
<exclude>backup/controller/tests/classes</exclude>
<exclude>backup/converter/moodle1/tests/classes</exclude>
<exclude>backup/moodle2/tests/classes</exclude>
<exclude>backup/tests/classes</exclude>
<exclude>backup/util/classes</exclude>
</testsuite>
<testsuite name="core_badges_testsuite">
<directory suffix="_test.php">badges/tests</directory>
<exclude>badges/tests/classes</exclude>
</testsuite>
<testsuite name="core_blog_testsuite">
<directory suffix="_test.php">blog/tests</directory>
<exclude>blog/tests/classes</exclude>
</testsuite>
<testsuite name="core_customfield_testsuite">
<directory suffix="_test.php">customfield/tests</directory>
<exclude>customfield/tests/classes</exclude>
</testsuite>
<testsuite name="core_iplookup_testsuite">
<directory suffix="_test.php">iplookup/tests</directory>
<exclude>iplookup/tests/classes</exclude>
</testsuite>
<testsuite name="core_course_testsuite">
<directory suffix="_test.php">course/tests</directory>
<exclude>course/tests/classes</exclude>
</testsuite>
<testsuite name="core_courseformat_testsuite">
<directory suffix="_test.php">course/format/tests</directory>
<exclude>course/format/tests/classes</exclude>
</testsuite>
<testsuite name="core_privacy_testsuite">
<directory suffix="_test.php">privacy/tests</directory>
<exclude>privacy/tests/classes</exclude>
</testsuite>
<testsuite name="core_question_testsuite">
<directory suffix="_test.php">question/engine/tests</directory>
<directory suffix="_test.php">question/tests</directory>
<directory suffix="_test.php">question/type/tests</directory>
<directory suffix="_test.php">question/engine/upgrade/tests</directory>
<exclude>question/engine/tests/classes</exclude>
<exclude>question/tests/classes</exclude>
<exclude>question/type/tests/classes</exclude>
<exclude>question/engine/upgrade/tests/classes</exclude>
</testsuite>
<testsuite name="core_cache_testsuite">
<directory suffix="_test.php">cache/tests</directory>
<exclude>cache/tests/classes</exclude>
</testsuite>
<testsuite name="core_calendar_testsuite">
<directory suffix="_test.php">calendar/tests</directory>
<exclude>calendar/tests/classes</exclude>
</testsuite>
<testsuite name="core_enrol_testsuite">
<directory suffix="_test.php">enrol/tests</directory>
<exclude>enrol/tests/classes</exclude>
</testsuite>
<testsuite name="core_group_testsuite">
<directory suffix="_test.php">group/tests</directory>
<exclude>group/tests/classes</exclude>
</testsuite>
<testsuite name="core_message_testsuite">
<directory suffix="_test.php">message/tests</directory>
<exclude>message/tests/classes</exclude>
</testsuite>
<testsuite name="core_notes_testsuite">
<directory suffix="_test.php">notes/tests</directory>
<exclude>notes/tests/classes</exclude>
</testsuite>
<testsuite name="core_tag_testsuite">
<directory suffix="_test.php">tag/tests</directory>
<exclude>tag/tests/classes</exclude>
</testsuite>
<testsuite name="core_rating_testsuite">
<directory suffix="_test.php">rating/tests</directory>
<exclude>rating/tests/classes</exclude>
</testsuite>
<testsuite name="core_repository_testsuite">
<directory suffix="_test.php">repository/tests</directory>
<exclude>repository/tests/classes</exclude>
</testsuite>
<testsuite name="core_userkey_testsuite">
<directory suffix="_test.php">lib/userkey/tests</directory>
<exclude>lib/userkey/tests/classes</exclude>
</testsuite>
<testsuite name="core_user_testsuite">
<directory suffix="_test.php">user/tests</directory>
<exclude>user/tests/classes</exclude>
</testsuite>
<testsuite name="core_webservice_testsuite">
<directory suffix="_test.php">webservice/tests</directory>
<exclude>webservice/tests/classes</exclude>
</testsuite>
<testsuite name="core_mnet_testsuite">
<directory suffix="_test.php">mnet/tests</directory>
<exclude>mnet/tests/classes</exclude>
</testsuite>
<testsuite name="core_completion_testsuite">
<directory suffix="_test.php">completion/tests</directory>
<exclude>completion/tests/classes</exclude>
</testsuite>
<testsuite name="core_comment_testsuite">
<directory suffix="_test.php">comment/tests</directory>
<exclude>comment/tests/classes</exclude>
</testsuite>
<testsuite name="core_search_testsuite">
<directory suffix="_test.php">search/tests</directory>
<exclude>search/tests/classes</exclude>
</testsuite>
<testsuite name="core_competency_testsuite">
<directory suffix="_test.php">competency/tests</directory>
<exclude>competency/tests/classes</exclude>
</testsuite>
<testsuite name="core_my_testsuite">
<directory suffix="_test.php">my/tests</directory>
<exclude>my/tests/classes</exclude>
</testsuite>
<testsuite name="core_auth_testsuite">
<directory suffix="_test.php">auth/tests</directory>
<exclude>auth/tests/classes</exclude>
</testsuite>
<testsuite name="core_block_testsuite">
<directory suffix="_test.php">blocks/tests</directory>
<exclude>blocks/tests/classes</exclude>
</testsuite>
<testsuite name="core_login_testsuite">
<directory suffix="_test.php">login/tests</directory>
<exclude>login/tests/classes</exclude>
</testsuite>
<testsuite name="core_plagiarism_testsuite">
<directory suffix="_test.php">plagiarism/tests</directory>
<exclude>plagiarism/tests/classes</exclude>
</testsuite>
<testsuite name="core_portfolio_testsuite">
<directory suffix="_test.php">portfolio/tests</directory>
<exclude>portfolio/tests/classes</exclude>
</testsuite>
<testsuite name="core_editor_testsuite">
<directory suffix="_test.php">lib/editor/tests</directory>
<exclude>lib/editor/tests/classes</exclude>
</testsuite>
<testsuite name="core_rss_testsuite">
<directory suffix="_test.php">rss/tests</directory>
<exclude>rss/tests/classes</exclude>
</testsuite>
<testsuite name="core_table_testsuite">
<directory suffix="_test.php">lib/table/tests</directory>
<exclude>lib/table/tests/classes</exclude>
</testsuite>
<testsuite name="core_h5p_testsuite">
<directory suffix="_test.php">h5p/tests</directory>
<exclude>h5p/tests/classes</exclude>
</testsuite>
<testsuite name="core_xapi_testsuite">
<directory suffix="_test.php">lib/xapi/tests</directory>
<exclude>lib/xapi/tests/classes</exclude>
</testsuite>
<testsuite name="core_contentbank_testsuite">
<directory suffix="_test.php">contentbank/tests</directory>
<exclude>contentbank/tests/classes</exclude>
</testsuite>
<testsuite name="core_payment_testsuite">
<directory suffix="_test.php">payment/tests</directory>
<exclude>payment/tests/classes</exclude>
</testsuite>
<testsuite name="core_reportbuilder_testsuite">
<directory suffix="_test.php">reportbuilder/tests</directory>
<exclude>reportbuilder/tests/classes</exclude>
</testsuite>
<testsuite name="core_adminpresets_testsuite">
<directory suffix="_test.php">admin/presets/tests</directory>
<exclude>admin/presets/tests/classes</exclude>
</testsuite>
<testsuite name="core_admin_testsuite">
<directory suffix="_test.php">admin/tests</directory>
<exclude>admin/tests/classes</exclude>
</testsuite>
<testsuite name="core_communication_testsuite">
<directory suffix="_test.php">communication/tests</directory>
<exclude>communication/tests/classes</exclude>
</testsuite>
<testsuite name="core_ai_testsuite">
<directory suffix="_test.php">ai/tests</directory>
<exclude>ai/tests/classes</exclude>
</testsuite>
<testsuite name="core_sms_testsuite">
<directory suffix="_test.php">sms/tests</directory>
</testsuite>
<!--Plugin suites: use admin/tool/phpunit/cli/util.php to build phpunit.xml from
phpunit.xml.dist with up-to-date list of plugins in current install-->
<!--@plugin_suites_start@-->
<!--@plugin_suites_end@-->
</testsuites>
<coverage>
<!--@coveragelist@-->
</coverage>
</phpunit>