An open API service indexing awesome lists of open source software.

https://github.com/testingbot/jest-js-testingbot-example

Jest + Selenium WebDriver example with TestingBot
https://github.com/testingbot/jest-js-testingbot-example

Last synced: 11 months ago
JSON representation

Jest + Selenium WebDriver example with TestingBot

Awesome Lists containing this project

README

          

## TestingBot - JestJS Example

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

### Environment Setup

1. Global Dependencies
* Install [Node.js](https://nodejs.org/en/)
* Or Install Node.js with [Homebrew](http://brew.sh/)
```
$ brew install node
```
2. TestingBot Credentials
* In the terminal export your TestingBot Credentials as environmental variables:
```
$ export TESTINGBOT_KEY=
$ export TESTINGBOT_SECRET=
```
3. Project Dependencies
* Install Node modules
```
$ npm install
```

### Running Tests

* Run a Jest test:
```
$ npm test
```

You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)

### Resources
##### [TestingBot Jest Documentation](https://testingbot.com/support/getting-started/jest.html)

##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)

##### [Jest Documentation](https://jestjs.io/docs/getting-started/)