night-patrol
v2.1.15Night Patrol
An Interactive Test Runner for Nightwatch.
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.