Skip to content

Commit 4f4021a

Browse files
committed
chore(vscode): add launch.json with test configurations
1 parent ffb14bc commit 4f4021a

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Test All Features",
5+
"type": "node",
6+
"program": "/usr/local/share/npm-global/bin/devcontainer",
7+
"args": [
8+
"features",
9+
"test",
10+
".",
11+
],
12+
"console": "integratedTerminal",
13+
"cwd": "${workspaceFolder}",
14+
"autoAttachChildProcesses": false,
15+
"request": "launch",
16+
},
17+
{
18+
"name": "Test Features (input)",
19+
"type": "node",
20+
"program": "/usr/local/share/npm-global/bin/devcontainer",
21+
"args": [
22+
"features",
23+
"test",
24+
"--skip-scenarios",
25+
"-f",
26+
"${input:selectedFeatures}",
27+
"-i",
28+
"${input:selectedBaseImage}",
29+
"."
30+
],
31+
"console": "integratedTerminal",
32+
"cwd": "${workspaceFolder}",
33+
"autoAttachChildProcesses": false,
34+
"request": "launch",
35+
},
36+
{
37+
"name": "Test Global",
38+
"type": "node",
39+
"program": "/usr/local/share/npm-global/bin/devcontainer",
40+
"args": [
41+
"features",
42+
"test",
43+
"--global-scenarios-only",
44+
"."
45+
],
46+
"console": "integratedTerminal",
47+
"cwd": "${workspaceFolder}",
48+
"autoAttachChildProcesses": false,
49+
"request": "launch"
50+
}
51+
],
52+
"inputs": [
53+
{
54+
"id": "selectedFeatures",
55+
"type": "promptString",
56+
"description": "Space separated list of features to test",
57+
},
58+
{
59+
"id": "selectedBaseImage",
60+
"type": "promptString",
61+
"description": "Base Image",
62+
"default": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu"
63+
}
64+
]
65+
}

0 commit comments

Comments
 (0)