This is the Javascript ES6 version of boilerplate code for UI test framework WebdriverJS (Selenium), Mocha and Chai. It contains support for
- Chrome and Firefox browser
- Screenshot taking upon failure
- Mochawesome report and stacktrace logging
Framework can be extended according to your needs. Other versions:
- Labrador - Java with Selenium and TestNG
- Clone this repo
git clone https://github.com/dhtlee/labrador.git
- Install dependencies
npm install
oryarn
- Update configuration values in config.js where needed
- Execute the demo test suite: Note: There will be 3 tests that passes and 2 that fails
npm test
oryarn test
- To view test report, open mochawesome-reports/mochawesome.html in a browser
Husky is released under the MIT License.