-
Notifications
You must be signed in to change notification settings - Fork 3
/
launch.json
119 lines (119 loc) · 3.82 KB
/
launch.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
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// Launch newman (npm test)
// This configuration launches `npm test` and attaches the debugger.
// The test script in this Node.js package executes a
// locally-installed newman instance.
{
"name": "Launch newman (npm test)",
"console": "integratedTerminal",
"request": "launch",
"runtimeArgs": [
"run-script",
"test",
"--",
"--timeout-script",
"1800000"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
// Launch newman (bin)
// This configuration launches a locally-installed newman
// and attaches the debugger.
{
"name": "Launch newman (bin)",
"console": "integratedTerminal",
"program": "${workspaceFolder}/node_modules/.bin/newman",
"args": [
"run",
"collection.json",
"--timeout-script",
"1800000"
],
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
// Launch newman (global)
// This configuration launches a globally-installed newman
// instance and attaches the debugger.
{
"name": "Launch newman (global)",
"console": "integratedTerminal",
"request": "launch",
"runtimeArgs": [
"run",
"collection.json",
"--timeout-script",
"1800000"
],
"runtimeExecutable": "newman",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
// Launch newman (global, prompt)
// This configuration launches a globally-installed newman
// after prompting for the path to the Postman collection JSON file
// and attaches the debugger.
{
"name": "Launch newman (global, prompt)",
"console": "integratedTerminal",
"request": "launch",
"runtimeArgs": [
"run",
"${input:postmanCollectionJSON}",
"--timeout-script",
"1800000"
],
"runtimeExecutable": "newman",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
,{
"name": "Newman (global, prompt for collection and environment)",
"console": "integratedTerminal",
"request": "launch",
"runtimeArgs": [
"run",
"${input:postmanCollectionJSON}",
"-e",
"${input:postmanEnvironmentJSON}",
"--timeout-script",
"1800000"
],
"runtimeExecutable": "newman",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
],
"inputs": [
{
"id": "postmanCollectionJSON",
"type": "promptString",
"default": "collection.json",
"description": "The path to the Postman collection JSON file."
}
,{
"id": "postmanEnvironmentJSON",
"type": "promptString",
"default": "environment.json",
"description": "The path to the Postman environment JSON file."
}
]
}