0.2.5 • Published 7 years ago
vue-cli-plugin-ui-karma v0.2.5
☕️ vue-cli-plugin-ui-karma
ui-karma plugin(ui) for vue-cli 3.x
This adds unit testing support using Karma.
Features
Implemented
- Run unit tests in headless chrome(default) with
vue-cli-service karma --file karma.conf.js. - Add customizable karma conf files for vue project.
- Add demo unit tests for normal vue project and example element-ui unit tests for vue project with element-ui.
Injected Commands
vue-cli-service karmarun unit tests with karma.
Options:
start run unit tests against auto-starting karma server karma.conf.*.js runs with a specific karma conf file. (default: karma.conf.js)This command automatically starts a karma server in development mode to run the unit tests against.
Configuration
We've pre-configured Karma to place most of the unit testing related files under <projectRoot>/.
Installing in an already created project
npm install -D vue-cli-plugin-ui-karmaFor Karma Statistics in vue-cli 3.x ui, please install vue-cli-addon-ui-karma in npm's global mode.
npm install -g vue-cli-addon-ui-karma