-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
326 lines (326 loc) · 11.7 KB
/
package.json
File metadata and controls
326 lines (326 loc) · 11.7 KB
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
320
321
322
323
324
325
326
{
"name": "ruby-spec-runner",
"displayName": "Ruby Spec Runner",
"description": "Run specific rspec & minitest tests from within vscode",
"publisher": "Fooo",
"repository": {
"type": "git",
"url": "https://github.com/foneandrew/ruby-spec-runner"
},
"icon": "images/icon.png",
"license": "MIT",
"version": "4.2.0",
"engines": {
"vscode": "^1.94.0"
},
"keywords": [
"ruby tests",
"rspec",
"minitest"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:ruby"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "ruby-spec-runner.runRspecOrMinitestFile",
"title": "Ruby Spec Runner: Run this spec/minitest file"
},
{
"command": "ruby-spec-runner.runRspecOrMinitestLine",
"title": "Ruby Spec Runner: Run this line in rspec/minitest"
},
{
"command": "ruby-spec-runner.debugRspecFile",
"title": "Ruby Spec Runner: Debug this spec file"
},
{
"command": "ruby-spec-runner.debugRspecLine",
"title": "Ruby Spec Runner: Debug this line in rspec"
},
{
"command": "ruby-spec-runner.runFailedExamples",
"title": "Ruby Spec Runner: Re-run failed examples"
},
{
"command": "ruby-spec-runner.clearResults",
"title": "Ruby Spec Runner: Clear test results for this file"
}
],
"keybindings": [
{
"command": "ruby-spec-runner.runRspecOrMinitestLine",
"key": "ctrl+alt+/",
"mac": "ctrl+cmd+/",
"when": "editorLangId == 'ruby'"
},
{
"command": "ruby-spec-runner.runRspecOrMinitestFile",
"key": "ctrl+shift+alt+/",
"mac": "ctrl+shift+cmd+/",
"when": "editorLangId == 'ruby'"
},
{
"command": "ruby-spec-runner.debugRspecLine",
"key": "ctrl+k ctrl+alt+/",
"mac": "cmd+k ctrl+cmd+/",
"when": "editorLangId == 'ruby'"
},
{
"command": "ruby-spec-runner.debugRspecFile",
"key": "ctrl+k ctrl+shift+alt+/",
"mac": "cmd+k ctrl+shift+cmd+/",
"when": "editorLangId == 'ruby'"
}
],
"configuration": {
"title": "Ruby Spec Runner",
"properties": {
"ruby-spec-runner.rspecCommand": {
"type": "string",
"markdownDescription": "Rspec: Provide an alternative rspec command. For example you may need to use a different path to rspec.",
"scope": "window"
},
"ruby-spec-runner.rspecEnv": {
"type": "object",
"markdownDescription": "Rspec: Provide an environment variables for rspec command. For example you may to disable code coverage with something like `{\"SKIP_COVERAGE\": true}`.",
"scope": "window"
},
"ruby-spec-runner.rspecDebugEnv": {
"type": "object",
"markdownDescription": "Rspec: Provide additional environment variables for rspec command when debugging. For example you may to disable a spring preloader (which doesn't work with debugging) with something like `{\"DISABLE_SPRING\": true}`.\n\nEnvironment variables set here will be merged with those set in `rspecEnv` with `rspecDebugEnv` variables given preference.",
"scope": "window"
},
"ruby-spec-runner.minitestCommand": {
"type": "string",
"default": "",
"markdownDescription": "Minitest: Provide an alternative minitest command. For example you may need to use a different path to minitest.",
"scope": "window"
},
"ruby-spec-runner.minitestEnv": {
"type": "object",
"markdownDescription": "Minitest: Provide an environment variables for minitest command. For example you may to disable code coverage with something like `{\"SKIP_COVERAGE\": true}`.",
"scope": "window"
},
"ruby-spec-runner.changeDirectoryToWorkspaceRoot": {
"type": "boolean",
"default": true,
"description": "Changes directory to workspace root before running the spec",
"scope": "window"
},
"ruby-spec-runner.projectPath": {
"type": "string",
"default": "",
"description": "Absolute path to project directory (e.g. /home/me/project/sub-folder). Defaults to the workspace directory.",
"scope": "window"
},
"ruby-spec-runner.rspecFormat": {
"type": "string",
"enum": [
"Documentation",
"Progress"
],
"default": "Progress",
"markdownDescription": "Rspec: Output format for rspec.\n\n- **Documentation:** group and example names\n- **Progress:** dots for each example",
"scope": "window"
},
"ruby-spec-runner.rspecSingleLineFormat": {
"type": "string",
"enum": [
"Documentation",
"Progress",
"Use Default Format"
],
"default": "Use Default Format",
"markdownDescription": "Rspec: Output format for single line tests (when running individual examples).\n\n- **Documentation:** group and example names\n- **Progress:** dots for each example\n- **Use Default Format:** use the same format as `rspecFormat`",
"scope": "window"
},
"ruby-spec-runner.saveBeforeRunning": {
"type": "boolean",
"default": true,
"description": "Save the file before running the spec/test",
"scope": "window"
},
"ruby-spec-runner.rspecRunButton": {
"type": "boolean",
"default": true,
"description": "Rspec: Show a status bar button to run the current spec file",
"scope": "window"
},
"ruby-spec-runner.rspecDebugButton": {
"type": "boolean",
"default": true,
"description": "Rspec: Show a status bar button to debug the current spec file",
"scope": "window"
},
"ruby-spec-runner.rspecRunAllFailedButton": {
"type": "boolean",
"default": false,
"description": "Rspec: Show a status bar button to re-run the failed examples for the current spec file",
"scope": "window"
},
"ruby-spec-runner.minitestRunButton": {
"type": "boolean",
"default": true,
"description": "Minitest: Show a status bar button to run the current minitest file",
"scope": "window"
},
"ruby-spec-runner.rspecCodeLensPrompts": {
"type": "boolean",
"default": true,
"description": "Rspec: Show code lens prompts to run specific examples or contexts in the editor",
"scope": "window"
},
"ruby-spec-runner.rspecCodeLensDebugPrompts": {
"type": "boolean",
"default": true,
"description": "Rspec: Show code lens prompts to debug specific examples or contexts in the editor",
"scope": "window"
},
"ruby-spec-runner.minitestCodeLensPrompts": {
"type": "boolean",
"default": true,
"description": "Minitest: Show code lens prompts to run specific examples or contexts in the editor",
"scope": "window"
},
"ruby-spec-runner.rspecDecorateEditorWithResults": {
"type": "boolean",
"default": true,
"description": "Rspec: Highlight errors, show spec results in the gutter, and highlighting in the overview ruler.",
"scope": "window"
},
"ruby-spec-runner.rspecDecorateEditorWithStaleResults": {
"type": "boolean",
"default": true,
"markdownDescription": "Rspec: Display stale results in the editor gutter and overview ruler. Disable to hide stale results. Only applies when `Rspec Decorate Editor With Results` is enabled.",
"scope": "window"
},
"ruby-spec-runner.minitestDecorateEditorWithResults": {
"type": "boolean",
"default": true,
"markdownDescription": "Minitest: Highlight errors, show spec results in the gutter, and highlighting in the overview ruler.\n\n**Windows users: turn this off if the minitest command is failing or check the spec runner windowsTerminalType configuration.**",
"scope": "window"
},
"ruby-spec-runner.minitestDecorateEditorWithStaleResults": {
"type": "boolean",
"default": true,
"markdownDescription": "Minitest: Display stale results in the editor gutter and overview ruler. Disable to hide stale results. Only applies when `Minitest Decorate Editor With Results` is enabled.",
"scope": "window"
},
"ruby-spec-runner.windowsTerminalType": {
"type": "string",
"enum": [
"Bash",
"Powershell"
],
"default": "Powershell",
"markdownDescription": "Select the vscode default terminal for windows machines. Affects the command used for minitest editor decoration.",
"scope": "window"
},
"ruby-spec-runner.overviewHighlightPosition": {
"type": "string",
"enum": [
"Left",
"Right",
"Center"
],
"default": "Left",
"markdownDescription": "Select which side test results appear in the overview ruler. Can be useful if another extension uses a particular side of the overview ruler (eg git lens). Only applies when editor decorations are on.\n\n_(Does not apply to line failures which are always full width)_",
"scope": "window"
},
"ruby-spec-runner.clearTerminalOnTestRun": {
"type": "string",
"enum": [
"Clear",
"Do not clear"
],
"default": "Clear",
"markdownDescription": "Before a test command is executed the previous terminal output can be cleared. \n\n- **Clear:** Clear the terminal output\n- **Do not clear:** Do not clear the terminal output (allow scrollback)",
"scope": "window"
},
"ruby-spec-runner.rubyDebugger": {
"type": "string",
"enum": [
"Rdbg",
"Ruby LSP"
],
"default": "Rdbg",
"markdownDescription": "Which ruby debugger to use\n\n* **Rdbg:** The [ruby debug vscode extension](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg)\n* **RubyLSP:** The [ruby-lsp vscode extension](https://marketplace.visualstudio.com/items?itemName=Shopify.ruby-lsp)",
"scope": "window"
},
"ruby-spec-runner.rewriteTestPaths": {
"type": "array",
"default": [],
"markdownDescription": "Rewrite paths in the test command. Useful for changing paths in the test command to match the environment the tests are run in (Docker etc). See the [the readme](https://marketplace.visualstudio.com/items?itemName=Fooo.ruby-spec-runner#rewriting-the-test-file-path) for more details.",
"items": {
"title": "Path mappings",
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "The path to match"
},
"to": {
"type": "string",
"description": "The replacement path"
},
"regex": {
"type": "boolean",
"description": "Treat 'from' as a regex pattern",
"default": false
},
"exclusive": {
"type": "boolean",
"description": "Stop looking for other matches after successfully applying this rule",
"default": true
}
}
}
},
"ruby-spec-runner.outputFilePath": {
"type": "string",
"default": "",
"markdownDescription": "Specify the absolute path (e.g. `/path/to/my/rspec-results.json`) for the test result output. Useful for triggering rspec manually (eg from Guard).\n\nUses a temp file if left blank. **Changes require vscode restart**",
"scope": "window"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/sinon": "^17.0.3",
"@types/tmp": "^0.2.6",
"@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.11.1",
"sinon": "^19.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.6.2",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"chokidar": "^4.0.1",
"tmp": "^0.2.3"
}
}