tacoss / grunt-nightwatch

Run your Nightwatch.js tests with Grunt
50 stars 22 forks source link

config_path doesn't read nightwatch.json #55

Closed hayesmaker closed 9 years ago

hayesmaker commented 9 years ago

in my gruntfile:

    nightwatch: {
      options: {
        config_path: '/test/e2e/nightwatch/nightwatch.json'
      }
    }

when i run grunt nightwatch

➜ ✗ grunt nightwatch
Running "nightwatch" task
Warning: Unable to read "/test/e2e/nightwatch/nightwatch.json" file (Error code: ENOENT). Use --force to continue.

If I browse to that folder and run nightwatch tests run fine.

pateketrueke commented 9 years ago

Seems like you're using an absolute path, I think you should use ./test/e2e/nightwatch/nightwatch.json instead?

hayesmaker commented 9 years ago

that was it.. thanks