You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "Pro" mode, the plugin supports VS Code launch configurations in the `.vscode/launch.json` file. Here is an example configuration:
170
+
171
+
```json
172
+
{
173
+
"version": "0.2.0",
174
+
"configurations": [
175
+
{
176
+
"type": "karate",
177
+
"name": "env-test",
178
+
"request": "launch",
179
+
"feature": "${file}",
180
+
"karateArgs": [
181
+
"-e",
182
+
"test"
183
+
]
184
+
}
185
+
]
186
+
}
187
+
```
188
+
189
+
The advantage is that you can set up any combination of [Karate runtime options](https://github.com/karatelabs/karate#karateoptions) via `karateArgs`. For example you can:
190
+
*[run tests in parallel](https://github.com/karatelabs/karate/tree/master/karate-netty#parallel-execution)
191
+
*[set the environment](https://github.com/karatelabs/karate/tree/master/karate-netty#karateenv)
192
+
* or [choose tags](https://github.com/karatelabs/karate/tree/master/karate-netty#tags) to include or exclude.
193
+
194
+
Now you can run tests from the [Run and Debug](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations) view in VS Code and keyboard short-cuts such as `F5` will work for the currently focused file in the editor. Note that you can even Run without Debugging: `Ctrl + F5`.
0 commit comments