1.1.1 • Published 9 years ago

qunit-special-blend v1.1.1

Weekly downloads
26
License
-
Repository
bitbucket
Last release
9 years ago

Qunit-Special-Blend

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

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

Installation

npm install qunit-special-blend

Usage

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

  files: [
    /* The special blend */
    'node_modules/qunit-special-blend/qunit-special-blend.js',
    /* App and test files here */
    'your/app/js/*.js',
    'your/tests/*.js',
    /* Run the special blend */
    'node_modules/qunit-special-blend/run-qunit-special-blend.js'
  ],

You will now be able to use three new functions in your tests.js files singleTest, singleModule and 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 tests 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.

1.1.1

9 years ago

1.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago