I managed to run nightwatch from phpstorm on windows 7.
npm install nightwatch
- add a
nightwatch.json
file (set the test directory, and everything else) - add a
nightwatch.js
file withrequire('nightwatch/bin/runner.js');
- create a
node.js
running configuration in phpstorm with thenightwatch.js
- run your configuration from phpstorm
It should return the same as it does from cli. Sadly nightwatch does not have an itellij reporter, so you have to settle for the cli reporter...
It is possible to start the selenium server before the tests. I just simply added a selenium.bat
file to the before launch
/ external tools
with the following content .
start javaw -jar selenium-server-standalone-2.41.0.jar
The selenium server does not allow multiple instances, so you don't have to check whether it is already running...