I am building cucumberjs tests using Visual Studio code. I can run tests using npm from the command line, and I can run them from VS code using the launch configuration.
However, I cannot debug the test from Visual Studio code. This is on Windows 7 with VSCode 1.12.1
Basic file structure:
.
+
| +
+
| +
| | +
| +
| | +
| +
+
| +
| | +
+
+
Inside package.json, I have the following:
"scripts": {
"test": "./node_modules/.bin/cucumberjs"
},
At the command prompt, I can successfully execute npm testor npm run-script test. I have launch.json configuration as follows:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"windows": {
"runtimeExecutable": "npm.cmd"
},
"runtimeArgs": [
"run-script",
"test"
]
}
]
}
When I run Debugger from VS Code, it just runs the test, giving me the results, but does not follow breakpoints.
, , launch.json - . launch.json, , , ( cucumberjs).