Skip to content

A basic template for a test suite based on Nightwatch.js

License

Notifications You must be signed in to change notification settings

initialized/nightwatch-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nightwatch-template

A basic template for a test suite based on Nightwatch.js

Why?

Nightwatch is a powerful framework for doing automated browser-based integration tests. While it doesn't replace unit testing, it often provides a good signal for when things are broken, leading to better testing across an entire engineering team. Combined with Selenium (vs. just Chromedriver), it can also be the basis for cross-browser testing across a variety of different browsers.

This simple template is designed to help teams bootstrap their Nightwatch test suite. It can either be used as a separate test repository, or integrated easily into an existing javascript codebase.

Installation / running

  1. git clone git@github.com:initialized/nightwatch-template.git
  2. npm install
  3. Install Chromedriver
  4. Start Chromedriver on port 9515: ./chromedriver
  5. Run tests: ./node_modules/.bin/nightwatch (or individually: ./node_modules/.bin/nightwatch tests/test-google-search.js)

The API docs are pretty complete and give a great sense of what types of tests you can write.

About

A basic template for a test suite based on Nightwatch.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published