Giter Club home page Giter Club logo

vue-cli-plugin-unit-karma's Introduction

vue-cli-plugin-unit-karma

Run unit tests in a @vue/cli project with Karma

Install

vue add vue-cli-plugin-unit-karma

Usage

The plugin registers a vue-cli-service test command, like the base test runners that come with @vue/cli. By default, it'll run everything in /tests/unit/ that ends in .spec.js or .spec.ts.

Command-line options include:

  • --watch, -w: run in watch mode
  • --junit [dirname], -j [dirname]: output JUnit-style XML test reports for each browser

If you needto configure the tests, you can add pluginOptions.karma to your vue.config.js, or to the "vue" key in package.json. See this file for config options.

NOTE: If you need to override specific settings in Karma itself, you can use the pluginOptions.karma.karmaConfig key. The contents will be merged into the plugin's own karma config, but be careful: if you include arrays or objects, they will completely replace the plugin's own settings for the corresponding key.

Contributing

Pull requests and issues are welcome. To use the plugin locally:

  1. Clone this repo.
  2. Run npm link from the repo
  3. Run npm link vue-cli-plugin-unit-karma from a @vue/cli project.

vue-cli-plugin-unit-karma's People

Contributors

davidwallacejackson avatar lowol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.