lundi 9 octobre 2017

Cannot read source folder attempting to make any action

When attempting to run my nightwatch project with npm run project_one, I get this response.

There was an error while starting the test runner:

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

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

Whenever I use any nightwatch command using npm, I get the same error, my Nightwatch config is as follows:

{
  "src_folders" : ["tests"],
  "output_folder" : "reports",

  "selenium" : {
    "start_process" : true,
    "server_path" : "./bin/selenium_v360.jar",
    "log_path" : "",
    "port" : 4444,
    "cli_args" : {
      "webdriver.chrome.driver" : "./bin/chromedriver"
    }
  },

  "test_settings" : {
    "default" : {
      "launch_url" : "http://localhost",
      "selenium_port"  : 4444,
      "selenium_host"  : "localhost",
      "desiredCapabilities": {
        "browserName": "chrome",
        "javascriptEnabled": true,
        "acceptSslCerts": true
      }
    }
  }
}

screenshot

I've noticed that in that error, there is no file called, there should be a nightwatch folder in there. /Users/BenyJo/examples/tests

Aucun commentaire:

Enregistrer un commentaire