This package has been deprecated

Author message:

Night Patrol is no longer maintained due to unmaintained core dependencies.

night-patrol

2.1.15 • Public • Published

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.

Package Sidebar

Install

npm i night-patrol

Weekly Downloads

0

Version

2.1.15

License

MIT

Unpacked Size

92.7 kB

Total Files

124

Last publish

Collaborators

  • jahed