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.
- Global Dependencies
$ brew install node
- TestingBot Credentials
- In the terminal export your TestingBot Credentials as environmental variables:
$ export TESTINGBOT_KEY=<your TestingBot Key> $ export TESTINGBOT_SECRET=<your TestingBot Secret>
- Project Dependencies
- Install Node modules
$ npm install
-
Run one test:
$ npm run single
-
Tests in Parallel:
$ npm run parallel
You will see the test result in the TestingBot Dashboard