Skip to content

A Karma plugin. Adapter for QUnit testing framework.

License

Notifications You must be signed in to change notification settings

cliffordscott/karma-qunit

 
 

Repository files navigation

karma-qunit Build Status

Adapter for the QUnit testing framework.

Installation

The easiest way is to keep karma-qunit as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-qunit": "~0.1"
  }
}

You can also use the simple command line installation:

npm install karma-qunit --save-dev

Configuration

Add qunit in the frameworks array in your karma.conf.js file. Then, in the plugins array, add karma-qunit. The following code shows the default configuration:

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['qunit'],
    plugins: ['karma-qunit'],
    files: [
      '*.js'
    ]
  });
};

For more information on Karma see the homepage. If you're using karma-qunit to test Ember.js, you might find Karma's Ember guide helpful.

About

A Karma plugin. Adapter for QUnit testing framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.6%
  • CoffeeScript 19.4%