因此,我正在使用CucumberJS开发一些UI回归测试。我有从app.js中调用的CucumberJS:
Promise.resolve().then(() => {
.
.
.
return shell.exec(`./node_modules/.bin/cucumber-js features/*.feature --format json:./results/result_${timestamp('YYYY_MM_DD_HH_mm_ss')}.json`);
}
我在launch.json中打开了childProcess:
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch test",
"autoAttachChildProcesses": true,
"program": "${workspaceFolder}/app.js",
"args": [
但是,调试不会扩展到CucumberJS中,它会在app.js之后停止跟踪
有人知道我怎样才能调试工作?