https://github.com/jd-apprentice/playground-nightwatch
https://github.com/jd-apprentice/playground-nightwatch
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jd-apprentice/playground-nightwatch
- Owner: jd-apprentice
- License: mit
- Created: 2023-10-19T22:38:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T16:03:52.000Z (over 2 years ago)
- Last Synced: 2025-02-02T12:15:02.276Z (about 1 year ago)
- Language: JavaScript
- Size: 593 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nightwatch.js Examples
[](https://www.npmjs.com/package/nightwatch)
[](https://github.com/nightwatchjs/nightwatch-examples/actions/workflows/node.js.yml)
[![Discord][discord-badge]][discord]
#### [Homepage](https://nightwatchjs.org) • [Developer Guide](https://nightwatchjs.org/guide) • [API Reference](https://nightwatchjs.org/api) • [About](https://nightwatchjs.org/about) • [Blog](https://nightwatchjs.org/blog)
This is a Github Actions enabled sample project which runs the examples bundled with Nightwatch 2 in Google Chrome.
## Run the Tests
Clone the repository or click the "Use this template" button. Then install the dependencies and run the tests:
```
npm install
```
This will run the tests in Chrome:
```sh
npm test
```
The generated HTML report is deployed automatically to:
https://nightwatchjs-community.github.io/nightwatch-examples
[discord-badge]: https://img.shields.io/discord/618399631038218240.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square
[discord]: https://discord.gg/SN8Da2X
## Reporting
Nightwatch 2.2 brings its own HTML reporter which better aggregate test results in a user-friendly HTML view. Read more about [using HTML reporter](https://nightwatchjs.org/guide/reporters/use-html-reporter.html)
### Preview

### Publishing HTML Test Report using Github
Github actions can be used to run your nightwatch tests and publish your test report to Github Pages
Here is the [test report](https://nightwatchjs-community.github.io/nightwatch-examples) generated using Github Actions and Pages.
Checkout the [Blog](https://nightwatchjs.org/blog/publish-your-nightwatch-html-report-on-github-pages/) about setting up Nightwatch tests on Github Actions and publishing test report on Github Pages