testingbot / nightwatch-example

An example of NightWatch for TestingBot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

An example of NightWatch for TestingBot.com

License:MIT License


Languages

Language:JavaScript 100.0%