C# Class QUnit.Engine

Afficher le fichier Open project: Saltarelle/SaltarelleQUnit

Private Properties

Свойство Type Description
Reset void

Méthodes publiques

Méthode Description
Begin ( System.Action callback ) : void

Register a callback to fire whenever the test suite begins. QUnit.begin() is called once before running any tests. (a better would've been QUnit.start, but thats already in use elsewhere and can't be changed.)

Done ( Action callback ) : void

Register a callback to fire whenever the test suite ends.

Init ( ) : void

Initialize the test runner. If the runner has already run, calling QUnit.init() will re-initialize the runner, effectively resetting it. This method does not need to be called in the normal use of QUnit. This is useful for being able to use the test runner for multiple batches of dynamically-loaded tests (load a batch of tests, get the results, re-init, load a new batch, etc.).

Log ( Action callback ) : void

Register a callback to fire whenever an assertion completes. This is one of several callbacks QUnit provides. Its intended for integration scenarios like PhantomJS or Jenkins.

ModuleDone ( Action callback ) : void

Register a callback to fire whenever a module ends.

ModuleStart ( Action callback ) : void

Register a callback to fire whenever a module begins.

Start ( ) : void

Start running tests again after the testrunner was stopped. When your async test has multiple exit points, call start() for the corresponding number of stop() increments.

Start ( int decrement ) : void

Start running tests again after the testrunner was stopped. When your async test has multiple exit points, call start() for the corresponding number of stop() increments.

Stop ( ) : void

Stop the testrunner to wait for async tests to run. Call start() to continue. When your async test has multiple exit points, call stop() with the increment argument, corresponding to the number of start() calls you need.

Stop ( int increment ) : void

Stop the testrunner to wait for async tests to run. Call start() to continue. When your async test has multiple exit points, call stop() with the increment argument, corresponding to the number of start() calls you need.

TestDone ( Action callback ) : void

Register a callback to fire whenever a test ends.

TestStart ( Action callback ) : void

Register a callback to fire whenever a test begins.

Private Methods

Méthode Description
Reset ( ) : void

Method Details

Begin() public static méthode

Register a callback to fire whenever the test suite begins. QUnit.begin() is called once before running any tests. (a better would've been QUnit.start, but thats already in use elsewhere and can't be changed.)
public static Begin ( System.Action callback ) : void
callback System.Action
Résultat void

Done() public static méthode

Register a callback to fire whenever the test suite ends.
public static Done ( Action callback ) : void
callback Action
Résultat void

Init() public static méthode

Initialize the test runner. If the runner has already run, calling QUnit.init() will re-initialize the runner, effectively resetting it. This method does not need to be called in the normal use of QUnit. This is useful for being able to use the test runner for multiple batches of dynamically-loaded tests (load a batch of tests, get the results, re-init, load a new batch, etc.).
public static Init ( ) : void
Résultat void

Log() public static méthode

Register a callback to fire whenever an assertion completes. This is one of several callbacks QUnit provides. Its intended for integration scenarios like PhantomJS or Jenkins.
public static Log ( Action callback ) : void
callback Action
Résultat void

ModuleDone() public static méthode

Register a callback to fire whenever a module ends.
public static ModuleDone ( Action callback ) : void
callback Action
Résultat void

ModuleStart() public static méthode

Register a callback to fire whenever a module begins.
public static ModuleStart ( Action callback ) : void
callback Action
Résultat void

Start() public static méthode

Start running tests again after the testrunner was stopped. When your async test has multiple exit points, call start() for the corresponding number of stop() increments.
public static Start ( ) : void
Résultat void

Start() public static méthode

Start running tests again after the testrunner was stopped. When your async test has multiple exit points, call start() for the corresponding number of stop() increments.
public static Start ( int decrement ) : void
decrement int Optional argument to merge multiple start() calls into one. Use with multiple corrsponding stop() calls.
Résultat void

Stop() public static méthode

Stop the testrunner to wait for async tests to run. Call start() to continue. When your async test has multiple exit points, call stop() with the increment argument, corresponding to the number of start() calls you need.
public static Stop ( ) : void
Résultat void

Stop() public static méthode

Stop the testrunner to wait for async tests to run. Call start() to continue. When your async test has multiple exit points, call stop() with the increment argument, corresponding to the number of start() calls you need.
public static Stop ( int increment ) : void
increment int Optional argument to merge multiple stop() calls into one. Use with multiple corrsponding start() calls.
Résultat void

TestDone() public static méthode

Register a callback to fire whenever a test ends.
public static TestDone ( Action callback ) : void
callback Action
Résultat void

TestStart() public static méthode

Register a callback to fire whenever a test begins.
public static TestStart ( Action callback ) : void
callback Action
Résultat void