Gathering detailed insights and metrics for @vue/cli-plugin-e2e-nightwatch
Gathering detailed insights and metrics for @vue/cli-plugin-e2e-nightwatch
Gathering detailed insights and metrics for @vue/cli-plugin-e2e-nightwatch
Gathering detailed insights and metrics for @vue/cli-plugin-e2e-nightwatch
@fromage/cli-plugin-e2e-nightwatch
e2e-nightwatch plugin for vue-cli
@aisino/cli-plugin-e2e-nightwatch
e2e-nightwatch plugin for vue-cli
vue-cli-plugin-e2e-nightwatch-browserstack
Vue-cli 4 plugin for adding nightwatch + browserstack e2e tests
vue-cli-plugin-e2e-nightwatch-cucumber
Nightwatch/Cucumber plugin for Vue CLI 3
🛠️ webpack-based tooling for Vue.js Development
npm install @vue/cli-plugin-e2e-nightwatch
Typescript
Module System
Node Version
NPM Version
60.5
Supply Chain
30.7
Quality
77.7
Maintenance
50
Vulnerability
90
License
JavaScript (75.05%)
Vue (22.89%)
TypeScript (0.87%)
Stylus (0.47%)
HTML (0.27%)
Shell (0.26%)
AppleScript (0.18%)
Total Downloads
8,650,721
Last Day
1,191
Last Week
17,150
Last Month
80,679
Last Year
865,827
MIT License
29,708 Stars
3,535 Commits
6,304 Forks
628 Watchers
22 Branches
522 Contributors
Updated on Sep 02, 2025
Latest Version
5.0.9
Package Id
@vue/cli-plugin-e2e-nightwatch@5.0.9
Unpacked Size
36.69 kB
Size
12.71 kB
File Count
18
NPM Version
lerna/4.0.0/node@v16.20.0+arm64 (darwin)
Node Version
16.20.0
Published on
Aug 21, 2025
Cumulative downloads
Total Downloads
Last Day
21.3%
1,191
Compared to previous day
Last Week
14.8%
17,150
Compared to previous week
Last Month
-8.2%
80,679
Compared to previous month
Last Year
-12.6%
865,827
Compared to previous year
3
4
3
e2e-nightwatch plugin for vue-cli
vue-cli-service test:e2e
Run end-to-end tests with Nightwatch.js.
Options:
--url run the tests against given url instead of auto-starting dev server
--config use custom nightwatch config file (overrides internals)
--headless use chrome or firefox in headless mode
--parallel enable parallel mode via test workers (only available in chromedriver)
--use-selenium use Selenium standalone server instead of chromedriver or geckodriver
-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
Additionally, all Nightwatch CLI options are also supported.
E.g.: --verbose
, --retries
etc.
The following structure will be generated when installing this plugin. There are examples for most testing concepts in Nightwatch available.
tests/e2e/
├── custom-assertions/
| └── elementCount.js
├── custom-commands/
| ├── customExecute.js
| ├── openHomepage.js
| └── openHomepageClass.js
├── page-objects/
| └── homepage.js
├── specs/
| ├── test.js
| └── test-with-pageobjects.js
└── globals.js
specs
The main location where tests are located. Can contain sub-folders which can be targeted during the run using the --group
argument. More info.
custom-assertions
Files located here are loaded automatically by Nightwatch and placed onto the .assert
and .verify
api namespaces to extend the Nightwatch built-in assertions. See writing custom assertions for details.
custom-commands
Files located here are loaded automatically by Nightwatch and placed onto the main browser
api object to extend the built-in Nightwatch commands. See writing custom commands for details.
page objects
Working with page objects is a popular methodology in end-to-end UI testing. Files placed in this folder are automatically loaded onto the .page
api namespace, with the name of the file being the name of the page object. See working with page objects section for details.
globals.js
The external globals file which can hold global properties or hooks. See test globals section.
1vue add e2e-nightwatch
We've pre-configured Nightwatch to run with Chrome by default. Firefox is also available via --env firefox
. If you wish to run end-to-end tests in additional browsers (e.g. Safari, Microsoft Edge), you will need to add a nightwatch.conf.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.
By default, all tests inside the specs
folder will be run using Chrome. If you'd like to run end-to-end tests against Chrome (or Firefox) in headless mode, simply pass the --headless
argument.
1$ vue-cli-service test:e2e
Running a single test
To run a single test supply the filename path. E.g.:
1$ vue-cli-service test:e2e tests/e2e/specs/test.js
Skip Dev server auto-start
If the development server is already running and you want to skip starting it automatically, pass the --url
argument:
1$ vue-cli-service test:e2e --url http://localhost:8080/
Running in Firefox
Support for running tests in Firefox is also available by default. Simply run the following (optionally add --headless
to run Firefox in headless mode):
1$ vue-cli-service test:e2e --env firefox [--headless]
Running in Firefox and Chrome simultaneously
You can also run the tests simultaneously in both browsers by supplying both test environments separated by a comma (",") - no spaces.
1$ vue-cli-service test:e2e --env firefox,chrome [--headless]
Running Tests in Parallel
For a significantly faster test run, you can enable parallel test running when there are several test suites. Concurrency is performed at the file level and is distributed automatically per available CPU core.
For now, this is only available in Chromedriver. Read more about parallel running in the Nightwatch docs.
1$ vue-cli-service test:e2e --parallel
Running with Selenium
Since v4
, the Selenium standalone server is not included anymore in this plugin and in most cases running with Selenium is not required since Nightwatch v1.0.
It is still possible to use the Selenium server, by following these steps:
1. Install selenium-server
NPM package:
1$ npm install selenium-server --save-dev
2. Run with --use-selenium
cli argument:
1$ vue-cli-service test:e2e --use-selenium
No vulnerabilities found.