Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.
/ night-patrol Public archive

Interactive Test Tunner for Nightwatch. Run individual tests, re-run failures, switch environments, autocompletion, and more.

License

Notifications You must be signed in to change notification settings

jahed/night-patrol

Repository files navigation

Night Patrol

npm

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.

About

Interactive Test Tunner for Nightwatch. Run individual tests, re-run failures, switch environments, autocompletion, and more.

Topics

Resources

License

Stars

Watchers

Forks