QUnit.start()


Description:

    QUnit.start() must be used to start a test run that has QUnit.config.autostart set to false.

    This method was previously used to control async tests on text contexts along with QUnit.stop. For asynchronous tests, use assert.async instead.

    When your async test has multiple exit points, call QUnit.start() for the corresponding number of QUnit.stop() increments.

    Example:

    A test run that does not begin when the page is done loading. This example uses an Asynchronous Module Definition (AMD) loader-style require call.

    1
    2
    3
    4
    5
    QUnit.config.autostart = false;
    require(["test/tests1.js", "test/tests2.js"], function() {
    QUnit.start();
    });