我正在尝试在Visual Studio Code中调试Cucumber场景,并对launch.json
进行了以下更改。
{
"name": "e2e",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}\\node_modules\\.bin\\cucumber-js",
"stopOnEntry": false,
"args": ["--no-timeouts", "--colors"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"outFiles": [
"${workspaceRoot}\\features\\step_definitions\\*.js"
]
},
然而,我无法使用上述配置运行调试会话。我创建的步骤定义文件是JavaScript格式。 因此,如果看起来没问题,我只需要上面脚本的帮助吗?
launch.json
文件中的cucumber配置脚本。希望现在对您清楚了。 - user7890278