-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
291 lines (291 loc) · 8.87 KB
/
Copy pathpackage.json
File metadata and controls
291 lines (291 loc) · 8.87 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
{
"name": "aos-phpunit",
"displayName": "PHPUnit Runner",
"description": "Parse PHPUnit tests in PHP files and run them from VS Code.",
"version": "0.4.0",
"publisher": "AOSSoftware",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:ayanozturk/vscode-phpunit-runner.git"
},
"engines": {
"vscode": "^1.89.0"
},
"categories": [
"Testing",
"Programming Languages",
"Other"
],
"keywords": [
"php",
"phpunit",
"test",
"testing"
],
"activationEvents": [
"onLanguage:php"
],
"icon": "phpunit-runner-logo.png",
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "PHPUnit Runner",
"properties": {
"phpunitRunner.phpExecutable": {
"type": "string",
"default": "php",
"description": "PHP executable used when launching PHPUnit."
},
"phpunitRunner.phpunitCommand": {
"type": "string",
"default": "",
"description": "Explicit PHPUnit executable or script path. Leave empty to auto-detect vendor/bin/phpunit or fallback to phpunit on PATH."
},
"phpunitRunner.configurationFile": {
"type": "string",
"default": "",
"description": "Optional phpunit.xml or phpunit.xml.dist path relative to the workspace folder or absolute on disk."
},
"phpunitRunner.workingDirectory": {
"type": "string",
"default": "",
"description": "Optional working directory relative to the workspace folder or absolute on disk. Defaults to the current file's workspace folder."
},
"phpunitRunner.docker.enable": {
"type": "boolean",
"default": false,
"description": "Execute PHPUnit inside a Docker container using docker exec."
},
"phpunitRunner.docker.command": {
"type": "string",
"default": "docker",
"description": "Docker CLI command used to execute PHPUnit inside a container."
},
"phpunitRunner.docker.container": {
"type": "string",
"default": "",
"description": "Target Docker container name or ID used when docker execution is enabled."
},
"phpunitRunner.docker.workspacePath": {
"type": "string",
"default": "",
"description": "Workspace root path inside the Docker container. Leave empty to reuse the host workspace path."
},
"phpunitRunner.docker.execArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional arguments appended to docker exec before the container name."
},
"phpunitRunner.additionalArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional arguments appended to every PHPUnit invocation."
},
"phpunitRunner.command": {
"type": "string",
"default": "",
"description": "Optional remote command template. Variables: ${php}, ${phpargs}, ${phpunit}, ${phpunitargs}, ${phpunitxml}, ${cwd}, ${workspaceFolder}, ${workspaceFolderBasename}, ${userHome}, ${pathSeparator}. When set, this takes precedence over docker.enable wrapping."
},
"phpunitRunner.paths": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Host-to-remote path mappings used with phpunitRunner.command (for example {\"${workspaceFolder}\": \"/var/www/html\"})."
},
"phpunitRunner.environment": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Extra environment variables set when launching PHPUnit."
},
"phpunitRunner.phpArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra arguments passed to the PHP binary (the ${phpargs} template variable)."
},
"phpunitRunner.saveBeforeTest": {
"type": "boolean",
"default": false,
"description": "Save all dirty editors before running tests."
},
"phpunitRunner.excludeGlobs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/vendor/**",
"**/node_modules/**",
"**/.git/**"
],
"description": "Glob patterns excluded when discovering PHPUnit tests."
},
"phpunitRunner.testFileGlobs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/*Test.php",
"**/tests/**/*.php"
],
"description": "Glob patterns used when refreshing PHPUnit tests across the workspace. Ignored when phpunit.xml defines testsuites."
},
"phpunitRunner.debuggerConfig": {
"type": "string",
"default": "",
"description": "launch.json configuration name used when debugging tests. Leave empty to start a generic PHP Xdebug listener."
},
"phpunitRunner.xdebugPort": {
"type": "number",
"default": 9003,
"description": "Xdebug client port used when phpunitRunner.debuggerConfig is empty."
}
}
},
"commands": [
{
"command": "phpunitRunner.refreshTests",
"title": "PHPUnit Runner: Refresh Tests"
},
{
"command": "phpunitRunner.runCurrentFile",
"title": "PHPUnit Runner: Run Current File"
},
{
"command": "phpunitRunner.runTestAtCursor",
"title": "PHPUnit Runner: Run Test At Cursor"
},
{
"command": "phpunitRunner.showOutput",
"title": "PHPUnit Runner: Show Output"
},
{
"command": "phpunitRunner.runAll",
"title": "PHPUnit Runner: Run All Tests"
},
{
"command": "phpunitRunner.rerun",
"title": "PHPUnit Runner: Rerun Last Run"
},
{
"command": "phpunitRunner.runFailed",
"title": "PHPUnit Runner: Run Failed Tests"
},
{
"command": "phpunitRunner.runByGroup",
"title": "PHPUnit Runner: Run By Group"
}
],
"menus": {
"commandPalette": [
{
"command": "phpunitRunner.refreshTests"
},
{
"command": "phpunitRunner.runCurrentFile"
},
{
"command": "phpunitRunner.runTestAtCursor"
},
{
"command": "phpunitRunner.showOutput"
},
{
"command": "phpunitRunner.runAll"
},
{
"command": "phpunitRunner.rerun"
},
{
"command": "phpunitRunner.runFailed"
},
{
"command": "phpunitRunner.runByGroup"
}
],
"editor/title": [
{
"command": "phpunitRunner.runCurrentFile",
"when": "resourceLangId == php",
"group": "navigation"
}
],
"editor/context": [
{
"command": "phpunitRunner.runTestAtCursor",
"when": "resourceLangId == php",
"group": "phpunitRunner@1"
},
{
"command": "phpunitRunner.runCurrentFile",
"when": "resourceLangId == php",
"group": "phpunitRunner@2"
}
]
},
"keybindings": [
{
"command": "phpunitRunner.runTestAtCursor",
"key": "ctrl+; ctrl+t",
"mac": "cmd+; cmd+t",
"when": "editorLangId == php"
},
{
"command": "phpunitRunner.runCurrentFile",
"key": "ctrl+; ctrl+f",
"mac": "cmd+; cmd+f",
"when": "editorLangId == php"
},
{
"command": "phpunitRunner.rerun",
"key": "ctrl+; ctrl+l",
"mac": "cmd+; cmd+l"
},
{
"command": "phpunitRunner.runAll",
"key": "ctrl+; ctrl+a",
"mac": "cmd+; cmd+a"
},
{
"command": "phpunitRunner.runFailed",
"key": "ctrl+; ctrl+e",
"mac": "cmd+; cmd+e"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "tsc -p ./tsconfig.json",
"watch": "tsc -watch -p ./tsconfig.json",
"test": "tsx --test src/*.test.ts",
"package": "webpack --mode production --devtool hidden-source-map",
"vsix": "vsce package --no-dependencies",
"publish:marketplace": "vsce publish"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/vscode": "^1.89.0",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^3.9.1",
"ts-loader": "^9.5.1",
"tsx": "^4.19.2",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
}
}