generator-nightwatchjs

A Yeoman code generator for Nightwatch.js. Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites built on top of the Selenium WebDriver API

Usage no npm install needed!

<script type="module">
  import generatorNightwatchjs from 'https://cdn.skypack.dev/generator-nightwatchjs';
</script>

README

generator-nightwatchjs NPM version Build Status Dependency Status Coverage percentage

A Yeoman code generator for Nightwatch.js. Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites built on top of the Selenium WebDriver API

Installation

First, install Yeoman and generator-nightwatchjs using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-nightwatchjs

Then generate your new project:

yo nightwatchjs

Scaffolded test suite layout

e2e
├── assertions
│   └── customValue.js
├── commands
│   └── resizePicture.js
├── output
│   ├── logs
│   │   └── .gitignore
│   └── screenshots
│       └── .gitignore
├── pages
│   ├── google.js
│   └── google-section.js
├── reports
│   └── .gitignore
├── tests
│   ├── google.js
│   └── google-section.js
├── .editorconfig
├── .gitignore
├── .jshintrc
├── globals.js
├── nightwatch.json
└── package.json

Note: The inclusion of the following files in the scaffolding is for demonstration purposes of typical nightwatch.js syntax, these files can (and should) be removed or modified prior to running your test suite.

  • assertions/customValue.js
  • commands/resizePicture.js
  • pages/google.js
  • pages/google-section.js
  • tests/google.js
  • tests/google-section.js
  • globals.js

License

MIT © Joe Purdy