Automated Acceptance Testing

with Nightwatch.js

Ever done this?

What if it worked more like this?

The Testing Pyramid

Acceptance Tests in JavaScript

Run by Nightwatch.js

Which sends instructions to Selenium WebDriver

Which controls browsers!

Nightwatch.js says if that's the state the browser should be in

Selenium WebDriver says what the state of the browser is

Browsers do stuff

Based on your test

Setting up Nightwatch.js

  1. Download and run Selenium Server
  2. Configure a `nightwatch.json` file
  3. Write test specs in your `tests/` folder
  4. Run `nightwatch` in your terminal

Demo

Kyle Coberly

Automated Acceptance Testing with Nightwatch.js

By Kyle Coberly

Automated Acceptance Testing with Nightwatch.js

10 minute lightning talk on Nightwatch.js

  • 1,652