-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Debugging Nightwatch tests in WebStorm
Andrei Rusu edited this page Aug 6, 2015
·
7 revisions
You can setup Nightwatch to debug through WebStorm IDE. Here's how to do this:
- Click Run in the main toolbar
- Edit Configurations
- On the top left of the Run/Debug Configurations dialog, click the + sign.
- Choose Node.js
- Name the new configuration "Nightwatch"
- WebStorm should detect your node interpreter (probably in /usr/local/bin/node)
- Under "JavaScript file" enter node_modules/nightwatch/bin/runner.js
- Under "Application parameters" enter the config switch with the path to your nightwatch.json, e.g. "--config tests/integration/nightwatch.json"
- Click Apply.
- Click Run
- Debug "Nightwatch"