Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 866 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 866 Bytes

Nightwatch Example Project

https://github.com/stinebean3/nightwatch-examples

About

This is an example repo to help you get started with testing using Nightwatch.js.

Included is a "test.js" file containing a set of example tests against google.com as well as a "Makefile" to set everything up and run the test for you.

In order to create your own Nightwatch project, feel free to "fork" or copy these files to get you started and adjust "test.js" to write tests for your own projects.

Dependencies

  • Java
  • node.js
  • npm
  • firefox

Set-up

  1. Clone repo
git clone https://github.com/stinethebean3/nightwatch-examples
cd nightwatch-examples
  1. Install dependencies
make install

Testing

  1. View/edit test.js
vim test.js
  1. Run the tests
make test