Reputation: 462
I'm using nightwatch.js to run tests, and would like to declutter the root directory of my app. Is it possible for nightwatch to run with nightwatch.conf.js anywhere other than the root directory? Something like
App
|
- Test
|
- NightwatchTests
|
- nightwatch.conf.js
.
.
.
Instead of
App
|
- Test
|
- NightwatchTests
.
.
.
- nightwatch.conf.js
Upvotes: 0
Views: 463
Reputation: 462
I was able to run my tests with nightwatch --config PATH_TO_NIGHTWATCH_CONF
Upvotes: 0
Reputation: 191
You can keep your nightwatch.conf.js anywhere, but remember to set absolute path for test case folder, jars, page objects etc. Try not to store nightwatch.conf.js (or nightwatch.json) file inside test case folder.
Upvotes: 1