vue-cli-plugin-ui-karma

0.2.5 • Public • Published

☕️ 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 karma

    run 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-karma

For 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

Readme

Keywords

none

Package Sidebar

Install

npm i vue-cli-plugin-ui-karma

Weekly Downloads

3

Version

0.2.5

License

MIT

Unpacked Size

47.6 kB

Total Files

25

Last publish

Collaborators

  • st1600133971