Files
vue-cli/packages/@vue/cli-plugin-e2e-nightwatch
RokkieBrown 77fc6d9f62 feat(ui): Add 'config' and 'env' options to nightwatch ui prompts (#1646)
* feat(ui): Add 'config' and 'env' options to nightwatch ui prompts

* feat(ui): Localize 'config' and 'env' option descriptions for nightwatch ui prompts
2018-06-21 17:30:23 +02:00
..
2018-05-01 18:15:25 -04:00
2018-05-01 18:15:25 -04:00
2018-01-05 09:20:20 -05:00
2018-05-30 13:39:19 -04:00
2018-03-20 01:39:26 +01:00
2018-06-18 10:36:49 -04:00
2018-05-16 11:36:44 +02:00

@vue/cli-plugin-e2e-nightwatch

e2e-nightwatch plugin for vue-cli

Injected Commands

  • vue-cli-service test: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   specify a test to run by name
    -f, --filter glob to filter tests by filename
    

    Note: this plugin currently uses Nightwatch v0.9.x. We are waiting for Nightwatch 1.0 to stabilize before upgrading.

    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

vue add @vue/e2e-nightwatch