forked from hbenl/vscode-mocha-test-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
319 lines (319 loc) · 10.7 KB
/
package.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
{
"name": "vscode-mocha-test-adapter",
"displayName": "Mocha Test Explorer",
"description": "Run your Mocha tests in the Sidebar of Visual Studio Code",
"icon": "img/icon.png",
"author": "Holger Benl <[email protected]>",
"publisher": "hbenl",
"version": "2.7.2",
"license": "MIT",
"homepage": "https://github.com/hbenl/vscode-mocha-test-adapter",
"repository": {
"type": "git",
"url": "https://github.com/hbenl/vscode-mocha-test-adapter.git"
},
"bugs": {
"url": "https://github.com/hbenl/vscode-mocha-test-adapter/issues"
},
"categories": [
"Other"
],
"keywords": [
"mocha",
"test",
"testing"
],
"main": "out/main.js",
"scripts": {
"reinstall": "rimraf node_modules package-lock.json && npm install",
"clean": "rimraf out .rpt2_cache vscode-mocha-test-adapter-*.vsix",
"build-extension": "tsc",
"watch-extension": "tsc -w",
"build-worker": "rollup -c",
"watch-worker": "rollup --watch -c",
"build-tests": "cd src/test/workspaces/sourcemap ; tsc",
"build": "npm run build-extension && npm run build-worker",
"rebuild": "npm run clean && npm run build",
"package": "vsce package",
"publish": "vsce publish"
},
"extensionDependencies": [
"hbenl.vscode-test-explorer"
],
"dependencies": {
"diff": "^4.0.2",
"dotenv": "^8.2.0",
"escape-string-regexp": "^4.0.0",
"minimatch": "^3.0.4",
"mocha": "^8.1.0",
"source-map-support": "^0.5.19",
"split": "^1.0.1",
"stack-trace": "0.0.10",
"tslib": "^2.0.0",
"vscode-test-adapter-api": "^1.9.0",
"vscode-test-adapter-remoting-util": "^0.11.0",
"vscode-test-adapter-util": "^0.7.1"
},
"devDependencies": {
"@babel/core": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/register": "^7.10.5",
"@types/diff": "^4.0.2",
"@types/glob": "^7.1.3",
"@types/minimatch": "^3.0.3",
"@types/mocha": "^8.0.3",
"@types/node": "^12.12.53",
"@types/source-map-support": "^0.5.2",
"@types/split": "^1.0.0",
"@types/stack-trace": "0.0.29",
"@types/vscode": "~1.47.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"mocha-prepare": "^0.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.23.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"rollup-plugin-typescript2": "^0.27.1",
"ts-node": "^8.10.2",
"typescript": "^3.9.7",
"vsce": "^1.77.0"
},
"engines": {
"vscode": "^1.47.0"
},
"activationEvents": [
"*"
],
"contributes": {
"configuration": {
"type": "object",
"title": "Mocha Test Explorer",
"properties": {
"mochaExplorer.files": {
"description": "The glob(s) describing the location of your test files (relative to the workspace folder)",
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"default": "test/**/*.js",
"scope": "resource"
},
"mochaExplorer.pruneFiles": {
"description": "Only load the test files needed for the current test run (the default is to load all configured files)",
"type": "boolean",
"default": false,
"scope": "resource"
},
"mochaExplorer.env": {
"description": "Environment variables to be set when running the tests",
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"scope": "resource"
},
"mochaExplorer.envPath": {
"description": "Path to a dotenv file (relative to the workspace folder) containing environment variables to be set when running the tests",
"type": [
"string",
"null"
],
"default": null,
"scope": "resource"
},
"mochaExplorer.cwd": {
"description": "The working directory where mocha is run (relative to the workspace folder)",
"type": "string",
"scope": "resource"
},
"mochaExplorer.ui": {
"description": "The mocha ui used by the tests",
"type": "string",
"default": "bdd",
"scope": "resource"
},
"mochaExplorer.timeout": {
"description": "The test-case timeout in milliseconds",
"type": "number",
"default": 2000,
"scope": "resource"
},
"mochaExplorer.retries": {
"description": "The number of times to retry failed tests",
"type": "number",
"default": 0,
"scope": "resource"
},
"mochaExplorer.require": {
"description": "Module(s) that Mocha should require()",
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"scope": "resource"
},
"mochaExplorer.fullTrace": {
"description": "Display the full stack trace in the log for test failures. By default Mocha will create a shortened stack trace containing relative file paths.",
"type": "boolean",
"default": false,
"scope": "resource"
},
"mochaExplorer.delay": {
"description": "Enable delayed root suite support",
"type": "boolean",
"default": false,
"scope": "resource"
},
"mochaExplorer.exit": {
"description": "Shutdown the Mocha process (using process.exit()) after the last test has been run",
"type": "boolean",
"default": false,
"scope": "resource"
},
"mochaExplorer.optsFile": {
"description": "The location of the mocha.opts file (relative to the workspace folder). If you set this option, the mocha.opts file will be parsed using a legacy parser and all other mocha configuration files will be ignored. Otherwise, all mocha configuration files will be parsed using mocha's parser.",
"type": "string",
"default": "test/mocha.opts",
"scope": "resource"
},
"mochaExplorer.nodePath": {
"description": "The path to the node executable to use. By default it will attempt to find it on your PATH, if it can't find it or if this option is set to `null`, it will use the one shipped with VS Code",
"type": [
"string",
"null"
],
"default": "default",
"scope": "resource"
},
"mochaExplorer.mochaPath": {
"description": "The path to the mocha package to use (relative to the workspace folder). By default (or if this option is set to `null`) it uses a bundled version of mocha, to use the one installed in your project's node_modules folder, set this option to \"node_modules/mocha\"",
"type": [
"string",
"null"
],
"default": "default",
"scope": "resource"
},
"mochaExplorer.monkeyPatch": {
"description": "Apply a monkey patch to Mocha's `bdd`, `tdd` and `qunit` interfaces to get more accurate line numbers for the tests and suites",
"type": "boolean",
"default": true,
"scope": "resource"
},
"mochaExplorer.debuggerPort": {
"description": "The port to use for debugging sessions",
"type": "number",
"default": 9229,
"scope": "resource"
},
"mochaExplorer.debuggerConfig": {
"description": "The name of a launch configuration to use for debugging sessions",
"type": [
"string",
"null"
],
"default": null,
"scope": "resource"
},
"mochaExplorer.esmLoader": {
"description": "Use Mocha's experimental ESM module loader if it is available",
"type": "boolean",
"default": true,
"scope": "resource"
},
"mochaExplorer.launcherScript": {
"description": "The path of a launcher script (relative to the workspace folder) used for running the tests remotely",
"type": [
"string",
"null"
],
"default": null,
"scope": "resource"
},
"mochaExplorer.ipcRole": {
"description": "Use a TCP connection instead of Node's IPC mechanism for talking to worker processes. This is only needed with some launcher scripts.",
"type": [
"string",
"null"
],
"enum": [
"client",
"server"
],
"default": null,
"scope": "resource"
},
"mochaExplorer.ipcPort": {
"description": "The TCP port that worker processes use to send their results to VS Code if `mochaExplorer.ipcRole` is set",
"type": [
"number"
],
"default": 9449,
"scope": "resource"
},
"mochaExplorer.ipcHost": {
"description": "The TCP host used for communication with worker processes. If `mochaExplorer.ipcRole` is set to `client`, this is the address that Mocha Explorer tries to connect to, if it is set to `server`, this is the address on which Mocha Explorer will listen for a connection.",
"type": [
"string",
"null"
],
"default": "localhost",
"scope": "resource"
},
"mochaExplorer.ipcTimeout": {
"description": "The timeout in milliseconds for establishing a TCP connection to a worker process if `mochaExplorer.ipcRole` is set",
"type": [
"number"
],
"default": 5000,
"scope": "resource"
},
"mochaExplorer.autoload": {
"description": "Automatically (re)load the tests when source files or relevant settings are changed and/or when VS Code is started",
"type": [
"boolean",
"string"
],
"enum": [
true,
false,
"onStart"
],
"default": true,
"scope": "resource"
},
"mochaExplorer.logpanel": {
"description": "Write diagnostic logs to an output panel",
"type": "boolean",
"scope": "resource"
},
"mochaExplorer.logfile": {
"description": "Write diagnostic logs to the given file",
"type": "string",
"scope": "resource"
}
}
},
"commands": [
{
"command": "mocha-explorer.enable",
"title": "Mocha Test Explorer: Enable for a workspace folder"
},
{
"command": "mocha-explorer.disable",
"title": "Mocha Test Explorer: Disable for a workspace folder"
}
]
}
}