-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.json
300 lines (300 loc) · 9.24 KB
/
schema.json
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
{
"id": "TestcafeBuilderOptions",
"title": "TestCafe builder",
"description": "TestCafe builder options",
"type": "object",
"properties": {
"assertionTimeout": {
"type": "number",
"description": "[TestCafe] set the amount of time within which assertion should pass"
},
"browsers": {
"description": "[TestCafe] browsers to run the tests on",
"oneOf": [
{
"type": "array",
"description": "[TestCafe] list of browsers to run the tests on",
"items": {
"type": "string",
"description": "name of the browser including arguments"
}
},
{
"type": "string",
"description": "[TestCafe] comma seperated list of the browser names"
}
],
"default": [
"chrome"
]
},
"clientScripts": {
"description": "[TestCafe] Scripts to inject into the tested pages",
"oneOf": [
{
"type": "string",
"description": "Script to inject into the tested pages"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"description": "Scripts to inject into the tested pages"
},
{
"type": "object",
"description": "Scripts to inject into the tested pages",
"properties": {
"module": {
"type": "string",
"description": "Node module"
},
"path": {
"type": "string",
"description": "path to script"
},
"content": {
"type": "string",
"description": "code to inject"
}
}
}
]
}
},
{
"type": "object",
"description": "Scripts to inject into the tested pages",
"properties": {
"module": {
"type": "string",
"description": "Node module"
},
"path": {
"type": "string",
"description": "path to script"
},
"content": {
"type": "string",
"description": "code to inject"
}
}
}
]
},
"color": {
"type": "boolean",
"description": "[TestCafe] force colors in command line"
},
"concurrency": {
"type": "number",
"description": "[TestCafe] number of concurrent browser instances to run"
},
"debugMode": {
"type": "boolean",
"description": "[TestCafe] execute test steps one by one pausing the test after each step"
},
"debugOnFail": {
"type": "boolean",
"description": "[TestCafe] pause the test if it fails"
},
"dev": {
"type": "boolean",
"description": "[TestCafe] enables mechanisms to log and diagnose errors"
},
"devServerTarget": {
"type": "string",
"description": "[Angular] Dev server target to run tests against."
},
"disablePageReloads": {
"type": "boolean",
"description": "[TestCafe] disable page reloads between tests"
},
"disableScreenshots": {
"type": "boolean",
"description": "[TestCafe] disable screenshots"
},
"disableTestSyntaxValidation": {
"type": "boolean",
"description": "[TestCafe] disables checks for 'test' and 'fixture' directives to run dynamically loaded tests"
},
"fixture": {
"type": "string",
"description": "[TestCafe] run only fixtures with the specified name"
},
"fixtureGrep": {
"type": "string",
"description": "[TestCafe] run only fixtures matching the specified pattern"
},
"fixtureMeta": {
"type": "object",
"description": "[TestCafe] run only fixtures with matching metadata"
},
"host": {
"type": "string",
"description": "[TestCafe] Host to use to run TestCafe on (only if devServerTarget is not set), default = localhost",
"default": "localhost"
},
"live": {
"type": "boolean",
"description": "Enables live mode. In this mode, TestCafe watches for changes you make in the test files and all files referenced in them (like page objects or helper modules). These changes immediately restart the tests so that you can see the effect.",
"default": false
},
"NoColor": {
"type": "boolean",
"description": "[TestCafe] disable colors in command line"
},
"pageLoadTimeout": {
"type": "number",
"description": "[TestCafe] set the amount of time within which TestCafe waits for the `window.load` event to fire on page load before proceeding to the next test action"
},
"ports": {
"type": "array",
"description": "[TestCafe] the ports to run TestCafe on",
"items": {
"type": "number",
"description": ""
}
},
"proxy": {
"type": "string",
"description": "[TestCafe] specify the host of the proxy server"
},
"proxyBypass": {
"type": "array",
"description": "[TestCafe] specify a comma-separated list of rules that define URLs accessed bypassing the proxy server",
"items": {
"type": "string",
"description": ""
}
},
"quarantineMode": {
"type": "boolean",
"description": "[TestCafe] enable the quarantine mode"
},
"reporters": {
"type": "array",
"description": "[TestCafe] specify the reporters and optionally files where reports are saved",
"items": {
"type": "object",
"description": "reporters"
},
"default": [
{
"name": "spec"
}
]
},
"screenshots": {
"type": "object",
"description": "[TestCafe] Screenshots options",
"properties": {
"path": {
"type": "string",
"description": "enable screenshot capturing and specify the path to save the screenshots to"
},
"takeOnFails": {
"type": "boolean",
"description": "take a screenshot whenever a test fails"
},
"pathPattern": {
"type": "string",
"description": "use patterns to compose screenshot file names and paths: ${BROWSER}, ${BROWSER_VERSION}, ${OS}, etc."
},
"fullPage": {
"type": "boolean",
"description": "enable full-page screenshots"
}
}
},
"selectorTimeout": {
"type": "number",
"description": "[TestCafe] set the amount of time within which selectors make attempts to obtain a node to be returned"
},
"skipJsErrors": {
"type": "boolean",
"description": "[TestCafe] make tests not fail when a JS error happens on a page"
},
"skipUncaughtErrors": {
"type": "boolean",
"description": "[TestCafe] ignore uncaught errors and unhandled promise rejections, which occur during test execution"
},
"speed": {
"type": "number",
"description": "[TestCafe] set the speed of test execution (0.01 ... 1)"
},
"src": {
"description": "[TestCafe] Tests to run: file or glob. You can use one or more file paths or glob patterns to specify which tests to run.",
"oneOf": [
{
"type": "string",
"description": "path of the test file"
},
{
"type": "array",
"items": {
"type": "string",
"description": "path of the test file"
}
}
]
},
"ssl": {
"type": "string",
"description": "[TestCafe] specify SSL options to run TestCafe proxy server over the HTTPS protocol"
},
"stopOnFirstFail": {
"type": "boolean",
"description": "[TestCafe] stop an entire test run if any test fails"
},
"test": {
"type": "string",
"description": "[TestCafe] run only tests with the specified name"
},
"testGrep": {
"type": "string",
"description": "[TestCafe] run only tests matching the specified pattern"
},
"testMeta": {
"type": "object",
"description": "[TestCafe] run only tests with matching metadata"
},
"tsConfigPath": {
"type": "string",
"description": "[TestCafe] Specifies the TypeScript configuration file location"
},
"video": {
"type": "object",
"description": "[TestCafe] video options",
"properties": {
"path": {
"type": "string",
"description": "enable screenshot capturing and specify the path to save the screenshots to"
},
"options": {
"type": "object",
"properties": {
"takeOnFails": {
"type": "boolean",
"description": "take a video whenever a test fails"
},
"pathPattern": {
"type": "string",
"description": "use patterns to compose screenshot file names and paths: ${BROWSER}, ${BROWSER_VERSION}, ${OS}, etc."
}
},
"encodingOptions": {
"type": "object",
"description": "FFMPEG encoding options (see testcafe docs for more details)"
}
}
}
}
},
"additionalProperties": false,
"required": [
"src"
]
}