我正在使用带有黄瓜的守夜表,它非常适合我,但是当我开始执行调试部分时,我陷入了错误,无法找出解决方法。
错误描述如下,运行launch.json后,我可以看到VS代码的调试控制台
Debugger listening on [::]:46131
There was an error while starting the test runner:
Error: Cannot read source folder: {directory path}/examples/tests
at /Users/{directory path}/node_modules/nightwatch/lib/runner/run.js:203:21
at {directory path}/node_modules/nightwatch/lib/runner/walk.js:97:18
at FSReqWrap.oncomplete (fs.js:123:15)
下面是我的launch.json文件
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/node_modules/nightwatch/bin/nightwatch"
}
]
}
作为参考,我已从url下面进行了操作
http://mucsi96.github.io/nightwatch-cucumber/#debugging-with-visual-studio-code
请帮助我,谢谢。