Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 880 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 880 Bytes

Nightwatch based tests demo

Simple tests against github resource using Nightwatch framework

How to run in Intellij Idea:

  1. Edit configuration -> New configuration "Node.js"
  2. Node Interpreter = <path_to_node.exe>
  3. Working directory = <path_where_nightwatch_config_is_placed> (e.g. nightwatch.conf.js)
  4. JavaScript file = <path_to_nightwatch_runner> (smth like ..nodejs\node_modules\nightwatch\bin\runner.js)
  5. Application parameters = nightwatch params like these: --config nightwatch.conf.js --test tests\email_tests.js

Project scripts depend on some node modules. In order to get scripts workable, add these dependencies:

  1. Install packages to npm modules default directory:
  • npm install -g assert
  • npm install -g xmlhttprequest
  1. Create "modules" folder under the project root (where "pages", "tests" are located)
  2. Move packages just downloaded to this folder