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
npm install generator-nightwatchjsbash
npm install -g yo
npm install -g generator-nightwatchjs
`
Then generate your new project:
`bash
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`