Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.41 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.41 KB

NodeJS Tests

TestingBot - NightWatch Example

TestingBot offers an online grid of browsers and mobile devices for running automated tests using Nightwatch. This example repository demonstrates how to use Nightwatch to execute tests in parallel across multiple browsers on TestingBot.

Environment Setup

  1. Global Dependencies
    $ brew install node
    
  2. TestingBot Credentials
    • In the terminal export your TestingBot Credentials as environmental variables:
    $ export TESTINGBOT_KEY=<your TestingBot Key>
    $ export TESTINGBOT_SECRET=<your TestingBot Secret>
    
  3. Project Dependencies
    • Install Node modules
    $ npm install
    

Running Tests

  • Run one test:

    $ npm run single
    
  • Tests in Parallel:

    $ npm run parallel
    

You will see the test result in the TestingBot Dashboard

Resources