nightwatch错误"错误:ENOENT:没有这样的文件或目录... / examples / pages"

时间:2017-12-05 12:28:35

标签: node.js automation automated-tests nightwatch.js

我开始使用守夜人(按照本教程 -  https://blog.risingstack.com/end-to-end-testing-with-nightwatch-js-node-js-at-scale/

我在" / Users / luisfranqueira / fyde / experiments"中创建了一个文件夹。 在里面我有结构: / bin / reports / tests nightwatch.json

运行测试时,请遵循教程中的所有说明 - 我运行命令" npm run test-e2e"

我收到以下错误:

> @ test-e2e /Users/luisfranqueira
> nightwatch


There was an error while starting the test runner:

Error: Cannot read source folder: /Users/luisfranqueira/examples/tests
    at /Users/luisfranqueira/node_modules/nightwatch/lib/runner/run.js:203:21
    at /Users/luisfranqueira/node_modules/nightwatch/lib/runner/walk.js:97:18
    at FSReqWrap.oncomplete (fs.js:152:21)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ test-e2e: `nightwatch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ test-e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/luisfranqueira/.npm/_logs/2017-12-05T12_23_49_345Z-debug.log

我知道这可能是错过配置的路径,但是,我不知道在哪里更改它......

0 个答案:

没有答案