Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.09 KB

File metadata and controls

45 lines (33 loc) · 1.09 KB

Search Example Automated Testing

Uses Nigthwatch

UI automated testing framework powered by Node.js. It uses the Selenium WebDriver API.

Nightwatch References: Homepage | Developer Guide | API Reference | Changelog

Install

Install Node.js and then:

$ git clone https://github.com/alwick/search-example-test.git
$ cd search-example-test
$ npm install

Startup Search Example Application

Download Search Example:

$ git clone https://github.com/alwick/search-example-reactjs.git
$ cd search-example-reactjs
$ npm install

Start search example:

$ npm dev

Run tests

The tests for Nightwatch are written using Mocha exports interface but they can also be run with Nightwatch itself.

To run the unit tests using mocha, do:

$ npm test

To run the unit tests using Nightwatch, do:

$ npm run test:unit