Skip to content
Interactive CLI for Nightwatch
TypeScript JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
test/data
typings
.editorconfig
.gitignore
.travis.yml
.yarnrc
CHANGELOG.md
LICENSE
README.md
commitlint.config.js
jest.config.js
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

Night Patrol

Travis npm Patreon Liberapay

An Interactive Test Runner for Nightwatch.

Demonstration

Installation

You can install Night Patrol like any other dev dependency. Depending on if you use Yarn or NPM as your package manager, the command may vary.

yarn add --dev night-patrol
npm install --save-dev night-patrol

Usage

To start a Night Patrol session, run:

yarn night-patrol
npx night-patrol

For help, just run the help command in the Night Patrol session.

Choose the Nightwatch Configuration

By default, Night Patrol will look for a nightwatch.config.js in the current directory. You can use a different path by using the --config argument.

night-patrol --config [path to nightwatch.config.js]

Choose the Nightwatch Executable

By default, Night Patrol will use the Nightwatch executable under ./node_modules/.bin/nightwatch. If you want to use a different executable, use the --nightwatch argument.

night-patrol --nightwatch [path to nightwatch executable]

Choose the Launch Environment

By default, Night Patrol will use the default environment. If you want to use a different environment, use the --env argument.

If the given environment is not found, Night Patrol will default to the first environment under test_settings in your Nightwatch configuration.

night-patrol --env [environment key from test_settings]

License

MIT.

You can’t perform that action at this time.