karma-qunit
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

karma-qunit

A Karma plugin. Adapter for QUnit testing framework.

4.0.0  •  Updated 7 months ago  •  by karma-runner  •  MIT License

js-standard-style npm version npm downloads

Build Status peerDependencies Status devDependency Status

Adapter for the QUnit testing framework.

Installation

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

$ 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'
    ]
  })
}

You can also pass options for QUnit.config (documented here) as such:

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

    // client configuration
    client: {
      clearContext: false,
      qunit: {
        showUI: true,
        testTimeout: 5000
      }
    }
  })
}

Note: showUI: true needs the clearContext: false option to display correctly in non-debug mode.


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.

Popularity

Weekly Downloads
25.7K
Stars
47

Maintenance

Development

Last ver 7 months ago
Created 7 years ago
Last commit 6 months ago
17 days between commits

Technology

Node version: 10.16.0
10.3K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

25 contributors
Friedel Ziegelmayer
Maintainer, 47 commits, 19 merges, 1 PRs
XhmikosR
Maintainer, 24 commits, 15 merges, 15 PRs
Vojta Jina
28 commits
johnjbarton
Maintainer, 8 commits, 1 merges, 1 PRs
Works at google
Johann-S
Maintainer, 4 commits, 4 merges, 5 PRs
Aymeric Beaumet
Maintainer, 2 commits, 3 merges

Tags

karma
karma-plugin
karma-adapter
qunit
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookLinkedIn
© 2020 Devstore, Inc.