Files
vue-cli/packages/@vue/cli-plugin-e2e-nightwatch
Evan You d595adacf4 refactor: adjust mode loading order
BREAKING CHANGE: PluginAPI.setMode() has been removed. Instead, for a plugin to
sepcify the default mode for a registered command, the plugins should expose
`module.exports.defaultModes` in the form of `{ [commandName]: mode }`.

close #959
2018-05-01 17:14:33 -04:00
..
2018-04-30 18:35:36 -04:00
2018-01-05 09:20:20 -05:00
2018-05-01 17:14:33 -04:00
2018-04-27 22:35:57 -04:00

@vue/cli-plugin-e2e-nightwatch

e2e-nightwatch plugin for vue-cli

Injected Commands

  • vue-cli-service e2e

    run e2e tests with NightwatchJS.

    Options:

    --url        run e2e tests against given url instead of auto-starting dev server
    --config     use custom nightwatch config file (overrides internals)
    -e, --env    specify comma-delimited browser envs to run in (default: chrome)
    -t, --test   sepcify a test to run by name
    -f, --filter glob to filter tests by filename
    

    Additionally, all Nightwatch CLI options are also supported.

Configuration

We've pre-configured Nightwatch to run with Chrome by default. If you wish to run e2e tests in additional browsers, you will need to add a nightwatch.config.js or nightwatch.json in your project root to configure additional browsers. The config will be merged into the internal Nightwatch config.

Alternatively, you can completely replace the internal config with a custom config file using the --config option.

Consult Nightwatch docs for configuration options and how to setup browser drivers.

Installing in an Already Created Project

npm install -D @vue/cli-plugin-e2e-nightwatch
vue invoke e2e-nightwatch