-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
245 lines (245 loc) · 6.87 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
{
"contributes": {
"configuration": {
"title": "behave-vsc",
"properties": {
"behave-vsc.envVarOverrides": {
"scope": "resource",
"type": "object",
"markdownDescription": "Optional key-value pairs of environment variable overrides (or additions) to use when calling a behave command. This will apply to all behave tests within the workspace.",
"additionalProperties": {
"type": "string"
}
},
"behave-vsc.featuresPath": {
"scope": "resource",
"type": "string",
"markdownDescription": "*workspace-relative* path to the features subfolder. If not `features` (the default), then this must tie up with the `\"paths=\"` setting in your behave configuration file. Example: `mysubfolder/my_behave_tests`.",
"default": "features"
},
"behave-vsc.justMyCode": {
"scope": "resource",
"type": "boolean",
"markdownDescription": "If set to false (disabled), the debugger will step into external code when debugging a behave test.",
"default": true
},
"behave-vsc.multiRootRunWorkspacesInParallel": {
"scope": "window",
"type": "boolean",
"markdownDescription": "For multi-root workspaces only. If enabled, then when behave tests are run from more than one workspace, behave tests from those workspaces are run at the same time. This setting should be in your `*.code-workspace` file.",
"default": true
},
"behave-vsc.runParallel": {
"scope": "resource",
"type": "boolean",
"markdownDescription": "Specifies whether to create a separate behave instance for each feature and run those instances simultaneously (except when debugging). Leave this off for your initial run, then enable if you wish and your test setup supports it (i.e. your features are fully isolated).",
"default": false
},
"behave-vsc.xRay": {
"scope": "window",
"type": "boolean",
"markdownDescription": "Specifies whether extension errors have stack traces and diagnostics are logged in console. The console output is viewable via the vscode command `Developer: Toggle Developer Tools`. Diagnostic logs are noisy, and may have a small performance impact.",
"default": false
}
}
},
"commands": [
{
"command": "behave-vsc.gotoStep",
"title": "Go to Step Definition"
},
{
"command": "behave-vsc.findStepReferences",
"title": "Find All Step References"
},
{
"command": "behave-vsc.stepReferences.next",
"title": "Step References: Next"
},
{
"command": "behave-vsc.stepReferences.prev",
"title": "Step References: Previous"
}
],
"keybindings": [
{
"command": "behave-vsc.gotoStep",
"key": "f12",
"when": "!isInEmbeddedEditor && editorTextFocus && resourceExtname =~ /\\.feature$/"
},
{
"command": "behave-vsc.findStepReferences",
"key": "alt+f12",
"when": "!isInEmbeddedEditor && editorTextFocus && resourcePath =~ /steps/ && resourceExtname =~ /\\.py$/"
},
{
"command": "behave-vsc.stepReferences.next",
"when": "behave-vsc.stepReferences.navKeysEnabled",
"key": "f4"
},
{
"command": "behave-vsc.stepReferences.prev",
"when": "behave-vsc.stepReferences.navKeysEnabled",
"key": "shift+f4"
}
],
"languages": [
{
"id": "gherkin",
"icon": {
"light": "./images/gherkin.png",
"dark": "./images/gherkin.png"
},
"extensions": [
"feature"
],
"aliases": [
"Gherkin",
"behave",
"Feature"
],
"configuration": "./gherkin.language-configuration.json"
}
],
"grammars": [
{
"language": "gherkin",
"scopeName": "gherkin.grammar",
"path": "./gherkin.grammar.json"
}
],
"snippets": [
{
"language": "gherkin",
"path": "./gherkin.snippets.json"
}
],
"configurationDefaults": {
"editor.semanticTokenColorCustomizations": {
"rules": {
"missing_step": "#cf1036"
}
}
},
"menus": {
"editor/context": [
{
"when": "!isInEmbeddedEditor && editorTextFocus && resourceExtname =~ /\\.feature$/",
"command": "behave-vsc.gotoStep",
"group": "navigation"
},
{
"when": "!isInEmbeddedEditor && editorTextFocus && resourcePath =~ /steps/ && resourceExtname =~ /\\.py$/",
"command": "behave-vsc.findStepReferences",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "StepReferences",
"title": "Step References",
"icon": "images/behave-vsc.png"
}
]
},
"views": {
"StepReferences": [
{
"id": "StepReferences",
"name": "Step References",
"icon": "images/behave-vsc.png",
"contextualTitle": "Step References",
"when": "behave-vsc.stepReferences.visible"
}
]
},
"viewsWelcome": [
{
"view": "StepReferences",
"contents": ""
}
]
},
"name": "behave-vsc",
"displayName": "Behave VSC",
"description": "Debug, Run and Navigate Python behave tests",
"version": "0.6.4",
"icon": "images/behave-vsc.png",
"galleryBanner": {
"color": "#2B2B2B",
"theme": "dark"
},
"publisher": "jimasp",
"private": true,
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/jimasp/behave-vsc/blob/main/README.md",
"bugs": {
"url": "https://github.com/jimasp/behave-vsc/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/jimasp/behave-vsc.git"
},
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Testing",
"Debuggers"
],
"keywords": [
"behave",
"debug",
"python",
"feature",
"bdd",
"multi-root ready"
],
"qna": false,
"extensionDependencies": [
"ms-python.python"
],
"activationEvents": [
"workspaceContains:**/*.feature"
],
"main": "./dist/extension.js",
"scripts": {
"prevscode:prepublish": "npm run test",
"vscode:prepublish": "npm run package",
"compile": "npm run clean-output && webpack",
"watch": "npm run clean-output && webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"lint": "eslint src --ext ts",
"test": "node ./out/_integrationTests/runTestSuites.js --stable",
"pretest": "npm run compile && npm run compile-tests && npm run lint",
"pretestinsiders": "npm run pretest",
"testinsiders": "node ./out/_integrationTests/runTestSuites.js --insiders",
"rimraf": "./node_modules/rimraf/bin.js",
"clean-output": "rimraf out/ dist/"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "17.x",
"@types/vscode": "^1.82.0",
"@types/xml2js": "^0.4.11",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.6.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"rimraf": "^3.0.2",
"ts-loader": "^9.2.5",
"typescript": "^4.5.5",
"webpack": "^5.76.0",
"webpack-cli": "^4.8.0"
},
"dependencies": {
"xml2js": "^0.6.2"
}
}