🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

karma-qunit-special-blend

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-qunit-special-blend

A QUnit plugin/hack/wrapper which allows the user to designiate single tests or modules to run.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

Qunit-Special-Blend

Ever want to run a single qunit test from your test suite with karma? Yeah, so did I.

This plugin/wrapper/npm module/hack was created to allow you to run a single qunit test or module with the karma test runner.

Installation

npm install karma-qunit-special-blend

Usage

After the package is installed configure your frameworks array in karma.conf.js as follows:

  frameworks: ['qunit', 'qunit-sb'],

You will now be able to use three new functions in your tests.js files

  • singleTest
  • singleModule
  • singleAsyncTest in addition to the regular qunit test and module methods.

If you don't have any of the new methods in your test files all tests will run as usual. If you have used the new methods only those tests will run.

Vim plugin to make this more convenient

I don't want to change test to singleTest and back all the time in my test files file, because this is supposed to make things faster and easier after all. I also happen to use Vim so I have written the vim-qunit-special-blend plugin that leverages the functionality provided by this npm module to run single tests but allows you to do it without altering your test code.

Keywords

karma-plugin

FAQs

Package last updated on 23 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts