我有一个带有Protractor UI测试的Angular 2+项目,上面有一层CucumberJS,因此我可以在Gherkin中定义步骤。
在Visual Studio代码中,我定义了launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/protractor/bin/protractor",
"stopOnEntry": false,
"args": [
"${workspaceRoot}/protractor.conf.js"
],
"outFiles": [
"./dist/out-tsc"
]
}
],
"compounds": []
}
当我按下F5时,所有测试都会执行,并且它们都会成功,但是没有断点。 另一方面,在WebStorm中点击断点没有问题,我只是指向protractor.conf并且它可以正常工作。
问题:我还应该在launch.json中声明如何在Visual Studio Code中启用命中断点?