Getting Started

This page will help you get started with quick_check.js. You'll be up and running in a jiffy!

When installing you will need to first install it as an NPM module:

npm install quick_check --save-dev

Then you will need to add it based on your test framework:

Karma + Jasmine

Using the Karma + Jasmine combo is the primary supported way of adding quick_check.js. Just add 'node_modules/quick_check/dist/jasmine-quick-check.js' to your files config item.

module.exports = function(config) {
  config.set({
    files: [
      'node_modules/quick_check/dist/jasmine-quick-check.js',
      // ...
    ]
  });
};

QUnit

🚧

Not tested

QUnit has some support, but is not currently tested.

Simply load it into the test runner.

Mocha

Since Mocha doesn't really have an assertion library, you can simply use the forAll function and use custom assertions within. Here is an example.

Other

For anything else, you can fairly easily write your own integration. Please see The qc function for in-depth information how the basic algorithm works.