1 |
efrain |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
<phpunit
|
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
4 |
xsi:noNamespaceSchemaLocation="lib/phpunit/phpunit.xsd"
|
|
|
5 |
bootstrap="lib/phpunit/bootstrap.php"
|
|
|
6 |
convertErrorsToExceptions="true"
|
|
|
7 |
convertNoticesToExceptions="true"
|
|
|
8 |
convertWarningsToExceptions="true"
|
|
|
9 |
processIsolation="false"
|
|
|
10 |
backupGlobals="false"
|
|
|
11 |
backupStaticAttributes="false"
|
|
|
12 |
cacheResult="false"
|
|
|
13 |
stopOnError="false"
|
|
|
14 |
stopOnFailure="false"
|
|
|
15 |
stopOnIncomplete="false"
|
|
|
16 |
stopOnSkipped="false"
|
|
|
17 |
beStrictAboutTestsThatDoNotTestAnything="false"
|
|
|
18 |
beStrictAboutOutputDuringTests="true"
|
|
|
19 |
>
|
|
|
20 |
|
|
|
21 |
<php>
|
|
|
22 |
<!--<const name="PHPUNIT_LONGTEST" value="1"/> uncomment to execute also slow or otherwise expensive tests-->
|
|
|
23 |
<const name="PHPUNIT_SEQUENCE_START" value=""/>
|
|
|
24 |
|
|
|
25 |
<!--Following constants instruct tests to fetch external test files from alternative location
|
|
|
26 |
or skip tests if empty, clone https://github.com/moodlehq/moodle-exttests to local web server-->
|
|
|
27 |
<!--<const name="TEST_EXTERNAL_FILES_HTTP_URL" value="http://download.moodle.org/unittest"/>
|
|
|
28 |
uncomment and alter to fetch external test files from alternative location-->
|
|
|
29 |
<!--<const name="TEST_EXTERNAL_FILES_HTTPS_URL" value="https://download.moodle.org/unittest"/>
|
|
|
30 |
uncomment and alter to fetch external test files from alternative location-->
|
|
|
31 |
</php>
|
|
|
32 |
|
|
|
33 |
<!--All core suites need to be manually added here-->
|
|
|
34 |
|
|
|
35 |
<testsuites>
|
|
|
36 |
<testsuite name="core_phpunit_testsuite">
|
|
|
37 |
<directory suffix="_test.php">lib/phpunit/tests</directory>
|
11 |
efrain |
38 |
<exclude>lib/phpunit/tests/classes</exclude>
|
1 |
efrain |
39 |
</testsuite>
|
|
|
40 |
<testsuite name="core_test_testsuite">
|
|
|
41 |
<directory suffix="_test.php">lib/testing/tests</directory>
|
11 |
efrain |
42 |
<exclude>lib/testing/tests/classes</exclude>
|
1 |
efrain |
43 |
</testsuite>
|
|
|
44 |
<testsuite name="core_ddl_testsuite">
|
|
|
45 |
<directory suffix="_test.php">lib/ddl/tests</directory>
|
11 |
efrain |
46 |
<exclude>lib/ddl/tests/classes</exclude>
|
1 |
efrain |
47 |
</testsuite>
|
|
|
48 |
<testsuite name="core_dml_testsuite">
|
|
|
49 |
<directory suffix="_test.php">lib/dml/tests</directory>
|
11 |
efrain |
50 |
<exclude>lib/dml/tests/classes</exclude>
|
1 |
efrain |
51 |
</testsuite>
|
|
|
52 |
<testsuite name="core_testsuite">
|
|
|
53 |
<directory suffix="_test.php">lib/tests</directory>
|
11 |
efrain |
54 |
<exclude>lib/tests/classes</exclude>
|
1 |
efrain |
55 |
<!-- <directory suffix="_test.php">lib/ajax/tests</directory> -->
|
|
|
56 |
</testsuite>
|
|
|
57 |
<testsuite name="core_external_testsuite">
|
|
|
58 |
<directory suffix="_test.php">lib/external/tests</directory>
|
11 |
efrain |
59 |
<exclude>lib/external/tests/classes</exclude>
|
1 |
efrain |
60 |
</testsuite>
|
|
|
61 |
<testsuite name="core_favourites_testsuite">
|
|
|
62 |
<directory suffix="_test.php">favourites/tests</directory>
|
11 |
efrain |
63 |
<exclude>favourites/tests/classes</exclude>
|
1 |
efrain |
64 |
</testsuite>
|
|
|
65 |
<testsuite name="core_form_testsuite">
|
|
|
66 |
<directory suffix="_test.php">lib/form/tests</directory>
|
11 |
efrain |
67 |
<exclude>lib/form/tests/classes</exclude>
|
1 |
efrain |
68 |
</testsuite>
|
|
|
69 |
<testsuite name="core_files_testsuite">
|
|
|
70 |
<directory suffix="_test.php">lib/filestorage/tests</directory>
|
|
|
71 |
<directory suffix="_test.php">lib/filebrowser/tests</directory>
|
|
|
72 |
<directory suffix="_test.php">files/tests</directory>
|
11 |
efrain |
73 |
<exclude>lib/filestorage/tests/classes</exclude>
|
|
|
74 |
<exclude>lib/filebrowser/tests/classes</exclude>
|
|
|
75 |
<exclude>files/tests/classes</exclude>
|
1 |
efrain |
76 |
</testsuite>
|
|
|
77 |
<testsuite name="core_filter_testsuite">
|
|
|
78 |
<directory suffix="_test.php">filter/tests</directory>
|
11 |
efrain |
79 |
<exclude>filter/tests/classes</exclude>
|
1 |
efrain |
80 |
</testsuite>
|
|
|
81 |
<testsuite name="core_role_testsuite">
|
|
|
82 |
<directory suffix="_test.php">admin/roles/tests</directory>
|
11 |
efrain |
83 |
<exclude>admin/roles/tests/classes</exclude>
|
1 |
efrain |
84 |
</testsuite>
|
|
|
85 |
<testsuite name="core_cohort_testsuite">
|
|
|
86 |
<directory suffix="_test.php">cohort/tests</directory>
|
11 |
efrain |
87 |
<exclude>cohort/tests/classes</exclude>
|
1 |
efrain |
88 |
</testsuite>
|
|
|
89 |
<testsuite name="core_grades_testsuite">
|
|
|
90 |
<directory suffix="_test.php">lib/grade/tests</directory>
|
|
|
91 |
<directory suffix="_test.php">grade/tests</directory>
|
|
|
92 |
<directory suffix="_test.php">grade/grading/tests</directory>
|
|
|
93 |
<directory suffix="_test.php">grade/import/csv/tests</directory>
|
11 |
efrain |
94 |
<exclude>lib/grade/tests/classes</exclude>
|
|
|
95 |
<exclude>grade/tests/classes</exclude>
|
|
|
96 |
<exclude>grade/grading/tests/classes</exclude>
|
|
|
97 |
<exclude>grade/import/csv/tests/classes</exclude>
|
1 |
efrain |
98 |
</testsuite>
|
|
|
99 |
<testsuite name="core_analytics_testsuite">
|
|
|
100 |
<directory suffix="_test.php">analytics/tests</directory>
|
11 |
efrain |
101 |
<exclude>analytics/tests/classes</exclude>
|
1 |
efrain |
102 |
</testsuite>
|
|
|
103 |
<testsuite name="core_availability_testsuite">
|
|
|
104 |
<directory suffix="_test.php">availability/tests</directory>
|
11 |
efrain |
105 |
<exclude>availability/tests/classes</exclude>
|
1 |
efrain |
106 |
</testsuite>
|
|
|
107 |
<testsuite name="core_backup_testsuite">
|
|
|
108 |
<directory suffix="_test.php">backup/controller/tests</directory>
|
|
|
109 |
<directory suffix="_test.php">backup/converter/moodle1/tests</directory>
|
|
|
110 |
<directory suffix="_test.php">backup/moodle2/tests</directory>
|
|
|
111 |
<directory suffix="_test.php">backup/tests</directory>
|
|
|
112 |
<directory suffix="_test.php">backup/util</directory>
|
11 |
efrain |
113 |
<exclude>backup/controller/tests/classes</exclude>
|
|
|
114 |
<exclude>backup/converter/moodle1/tests/classes</exclude>
|
|
|
115 |
<exclude>backup/moodle2/tests/classes</exclude>
|
|
|
116 |
<exclude>backup/tests/classes</exclude>
|
|
|
117 |
<exclude>backup/util/classes</exclude>
|
1 |
efrain |
118 |
</testsuite>
|
|
|
119 |
<testsuite name="core_badges_testsuite">
|
|
|
120 |
<directory suffix="_test.php">badges/tests</directory>
|
11 |
efrain |
121 |
<exclude>badges/tests/classes</exclude>
|
1 |
efrain |
122 |
</testsuite>
|
|
|
123 |
<testsuite name="core_blog_testsuite">
|
|
|
124 |
<directory suffix="_test.php">blog/tests</directory>
|
11 |
efrain |
125 |
<exclude>blog/tests/classes</exclude>
|
1 |
efrain |
126 |
</testsuite>
|
|
|
127 |
<testsuite name="core_customfield_testsuite">
|
|
|
128 |
<directory suffix="_test.php">customfield/tests</directory>
|
11 |
efrain |
129 |
<exclude>customfield/tests/classes</exclude>
|
1 |
efrain |
130 |
</testsuite>
|
|
|
131 |
<testsuite name="core_iplookup_testsuite">
|
|
|
132 |
<directory suffix="_test.php">iplookup/tests</directory>
|
11 |
efrain |
133 |
<exclude>iplookup/tests/classes</exclude>
|
1 |
efrain |
134 |
</testsuite>
|
|
|
135 |
<testsuite name="core_course_testsuite">
|
|
|
136 |
<directory suffix="_test.php">course/tests</directory>
|
11 |
efrain |
137 |
<exclude>course/tests/classes</exclude>
|
1 |
efrain |
138 |
</testsuite>
|
|
|
139 |
<testsuite name="core_courseformat_testsuite">
|
|
|
140 |
<directory suffix="_test.php">course/format/tests</directory>
|
11 |
efrain |
141 |
<exclude>course/format/tests/classes</exclude>
|
1 |
efrain |
142 |
</testsuite>
|
|
|
143 |
<testsuite name="core_privacy_testsuite">
|
|
|
144 |
<directory suffix="_test.php">privacy/tests</directory>
|
11 |
efrain |
145 |
<exclude>privacy/tests/classes</exclude>
|
1 |
efrain |
146 |
</testsuite>
|
|
|
147 |
<testsuite name="core_question_testsuite">
|
|
|
148 |
<directory suffix="_test.php">question/engine/tests</directory>
|
|
|
149 |
<directory suffix="_test.php">question/tests</directory>
|
|
|
150 |
<directory suffix="_test.php">question/type/tests</directory>
|
|
|
151 |
<directory suffix="_test.php">question/engine/upgrade/tests</directory>
|
11 |
efrain |
152 |
<exclude>question/engine/tests/classes</exclude>
|
|
|
153 |
<exclude>question/tests/classes</exclude>
|
|
|
154 |
<exclude>question/type/tests/classes</exclude>
|
|
|
155 |
<exclude>question/engine/upgrade/tests/classes</exclude>
|
1 |
efrain |
156 |
</testsuite>
|
|
|
157 |
<testsuite name="core_cache_testsuite">
|
|
|
158 |
<directory suffix="_test.php">cache/tests</directory>
|
11 |
efrain |
159 |
<exclude>cache/tests/classes</exclude>
|
1 |
efrain |
160 |
</testsuite>
|
|
|
161 |
<testsuite name="core_calendar_testsuite">
|
|
|
162 |
<directory suffix="_test.php">calendar/tests</directory>
|
11 |
efrain |
163 |
<exclude>calendar/tests/classes</exclude>
|
1 |
efrain |
164 |
</testsuite>
|
|
|
165 |
<testsuite name="core_enrol_testsuite">
|
|
|
166 |
<directory suffix="_test.php">enrol/tests</directory>
|
11 |
efrain |
167 |
<exclude>enrol/tests/classes</exclude>
|
1 |
efrain |
168 |
</testsuite>
|
|
|
169 |
<testsuite name="core_group_testsuite">
|
|
|
170 |
<directory suffix="_test.php">group/tests</directory>
|
11 |
efrain |
171 |
<exclude>group/tests/classes</exclude>
|
1 |
efrain |
172 |
</testsuite>
|
|
|
173 |
<testsuite name="core_message_testsuite">
|
|
|
174 |
<directory suffix="_test.php">message/tests</directory>
|
11 |
efrain |
175 |
<exclude>message/tests/classes</exclude>
|
1 |
efrain |
176 |
</testsuite>
|
|
|
177 |
<testsuite name="core_notes_testsuite">
|
|
|
178 |
<directory suffix="_test.php">notes/tests</directory>
|
11 |
efrain |
179 |
<exclude>notes/tests/classes</exclude>
|
1 |
efrain |
180 |
</testsuite>
|
|
|
181 |
<testsuite name="core_tag_testsuite">
|
|
|
182 |
<directory suffix="_test.php">tag/tests</directory>
|
11 |
efrain |
183 |
<exclude>tag/tests/classes</exclude>
|
1 |
efrain |
184 |
</testsuite>
|
|
|
185 |
<testsuite name="core_rating_testsuite">
|
|
|
186 |
<directory suffix="_test.php">rating/tests</directory>
|
11 |
efrain |
187 |
<exclude>rating/tests/classes</exclude>
|
1 |
efrain |
188 |
</testsuite>
|
|
|
189 |
<testsuite name="core_repository_testsuite">
|
|
|
190 |
<directory suffix="_test.php">repository/tests</directory>
|
11 |
efrain |
191 |
<exclude>repository/tests/classes</exclude>
|
1 |
efrain |
192 |
</testsuite>
|
|
|
193 |
<testsuite name="core_userkey_testsuite">
|
|
|
194 |
<directory suffix="_test.php">lib/userkey/tests</directory>
|
11 |
efrain |
195 |
<exclude>lib/userkey/tests/classes</exclude>
|
1 |
efrain |
196 |
</testsuite>
|
|
|
197 |
<testsuite name="core_user_testsuite">
|
|
|
198 |
<directory suffix="_test.php">user/tests</directory>
|
11 |
efrain |
199 |
<exclude>user/tests/classes</exclude>
|
1 |
efrain |
200 |
</testsuite>
|
|
|
201 |
<testsuite name="core_webservice_testsuite">
|
|
|
202 |
<directory suffix="_test.php">webservice/tests</directory>
|
11 |
efrain |
203 |
<exclude>webservice/tests/classes</exclude>
|
1 |
efrain |
204 |
</testsuite>
|
|
|
205 |
<testsuite name="core_mnet_testsuite">
|
|
|
206 |
<directory suffix="_test.php">mnet/tests</directory>
|
11 |
efrain |
207 |
<exclude>mnet/tests/classes</exclude>
|
1 |
efrain |
208 |
</testsuite>
|
|
|
209 |
<testsuite name="core_completion_testsuite">
|
|
|
210 |
<directory suffix="_test.php">completion/tests</directory>
|
11 |
efrain |
211 |
<exclude>completion/tests/classes</exclude>
|
1 |
efrain |
212 |
</testsuite>
|
|
|
213 |
<testsuite name="core_comment_testsuite">
|
|
|
214 |
<directory suffix="_test.php">comment/tests</directory>
|
11 |
efrain |
215 |
<exclude>comment/tests/classes</exclude>
|
1 |
efrain |
216 |
</testsuite>
|
|
|
217 |
<testsuite name="core_search_testsuite">
|
|
|
218 |
<directory suffix="_test.php">search/tests</directory>
|
11 |
efrain |
219 |
<exclude>search/tests/classes</exclude>
|
1 |
efrain |
220 |
</testsuite>
|
|
|
221 |
<testsuite name="core_competency_testsuite">
|
|
|
222 |
<directory suffix="_test.php">competency/tests</directory>
|
11 |
efrain |
223 |
<exclude>competency/tests/classes</exclude>
|
1 |
efrain |
224 |
</testsuite>
|
|
|
225 |
<testsuite name="core_my_testsuite">
|
|
|
226 |
<directory suffix="_test.php">my/tests</directory>
|
11 |
efrain |
227 |
<exclude>my/tests/classes</exclude>
|
1 |
efrain |
228 |
</testsuite>
|
|
|
229 |
<testsuite name="core_auth_testsuite">
|
|
|
230 |
<directory suffix="_test.php">auth/tests</directory>
|
11 |
efrain |
231 |
<exclude>auth/tests/classes</exclude>
|
1 |
efrain |
232 |
</testsuite>
|
|
|
233 |
<testsuite name="core_block_testsuite">
|
|
|
234 |
<directory suffix="_test.php">blocks/tests</directory>
|
11 |
efrain |
235 |
<exclude>blocks/tests/classes</exclude>
|
1 |
efrain |
236 |
</testsuite>
|
|
|
237 |
<testsuite name="core_login_testsuite">
|
|
|
238 |
<directory suffix="_test.php">login/tests</directory>
|
11 |
efrain |
239 |
<exclude>login/tests/classes</exclude>
|
1 |
efrain |
240 |
</testsuite>
|
|
|
241 |
<testsuite name="core_plagiarism_testsuite">
|
|
|
242 |
<directory suffix="_test.php">plagiarism/tests</directory>
|
11 |
efrain |
243 |
<exclude>plagiarism/tests/classes</exclude>
|
1 |
efrain |
244 |
</testsuite>
|
|
|
245 |
<testsuite name="core_portfolio_testsuite">
|
|
|
246 |
<directory suffix="_test.php">portfolio/tests</directory>
|
11 |
efrain |
247 |
<exclude>portfolio/tests/classes</exclude>
|
1 |
efrain |
248 |
</testsuite>
|
|
|
249 |
<testsuite name="core_editor_testsuite">
|
|
|
250 |
<directory suffix="_test.php">lib/editor/tests</directory>
|
11 |
efrain |
251 |
<exclude>lib/editor/tests/classes</exclude>
|
1 |
efrain |
252 |
</testsuite>
|
|
|
253 |
<testsuite name="core_rss_testsuite">
|
|
|
254 |
<directory suffix="_test.php">rss/tests</directory>
|
11 |
efrain |
255 |
<exclude>rss/tests/classes</exclude>
|
1 |
efrain |
256 |
</testsuite>
|
|
|
257 |
<testsuite name="core_table_testsuite">
|
|
|
258 |
<directory suffix="_test.php">lib/table/tests</directory>
|
11 |
efrain |
259 |
<exclude>lib/table/tests/classes</exclude>
|
1 |
efrain |
260 |
</testsuite>
|
|
|
261 |
<testsuite name="core_h5p_testsuite">
|
|
|
262 |
<directory suffix="_test.php">h5p/tests</directory>
|
11 |
efrain |
263 |
<exclude>h5p/tests/classes</exclude>
|
1 |
efrain |
264 |
</testsuite>
|
|
|
265 |
<testsuite name="core_xapi_testsuite">
|
|
|
266 |
<directory suffix="_test.php">lib/xapi/tests</directory>
|
11 |
efrain |
267 |
<exclude>lib/xapi/tests/classes</exclude>
|
1 |
efrain |
268 |
</testsuite>
|
|
|
269 |
<testsuite name="core_contentbank_testsuite">
|
|
|
270 |
<directory suffix="_test.php">contentbank/tests</directory>
|
11 |
efrain |
271 |
<exclude>contentbank/tests/classes</exclude>
|
1 |
efrain |
272 |
</testsuite>
|
|
|
273 |
<testsuite name="core_payment_testsuite">
|
|
|
274 |
<directory suffix="_test.php">payment/tests</directory>
|
11 |
efrain |
275 |
<exclude>payment/tests/classes</exclude>
|
1 |
efrain |
276 |
</testsuite>
|
|
|
277 |
<testsuite name="core_reportbuilder_testsuite">
|
|
|
278 |
<directory suffix="_test.php">reportbuilder/tests</directory>
|
11 |
efrain |
279 |
<exclude>reportbuilder/tests/classes</exclude>
|
1 |
efrain |
280 |
</testsuite>
|
|
|
281 |
<testsuite name="core_adminpresets_testsuite">
|
|
|
282 |
<directory suffix="_test.php">admin/presets/tests</directory>
|
11 |
efrain |
283 |
<exclude>admin/presets/tests/classes</exclude>
|
1 |
efrain |
284 |
</testsuite>
|
|
|
285 |
<testsuite name="core_admin_testsuite">
|
|
|
286 |
<directory suffix="_test.php">admin/tests</directory>
|
11 |
efrain |
287 |
<exclude>admin/tests/classes</exclude>
|
1 |
efrain |
288 |
</testsuite>
|
|
|
289 |
<testsuite name="core_communication_testsuite">
|
|
|
290 |
<directory suffix="_test.php">communication/tests</directory>
|
11 |
efrain |
291 |
<exclude>communication/tests/classes</exclude>
|
1 |
efrain |
292 |
</testsuite>
|
|
|
293 |
|
|
|
294 |
<!--Plugin suites: use admin/tool/phpunit/cli/util.php to build phpunit.xml from
|
|
|
295 |
phpunit.xml.dist with up-to-date list of plugins in current install-->
|
|
|
296 |
|
|
|
297 |
<!--@plugin_suites_start@-->
|
|
|
298 |
<!--@plugin_suites_end@-->
|
|
|
299 |
</testsuites>
|
|
|
300 |
|
|
|
301 |
<coverage>
|
|
|
302 |
<!--@coveragelist@-->
|
|
|
303 |
</coverage>
|
|
|
304 |
|
|
|
305 |
</phpunit>
|