C# Class QUnit.Engine

Datei anzeigen Open project: Saltarelle/SaltarelleQUnit

Private Properties

Property Type Description
Reset void

Public Methods

Method 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

Method Description
Reset ( ) : void

Method Details

Begin() public static method

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
return void

Done() public static method

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

Init() public static method

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
return void

Log() public static method

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
return void

ModuleDone() public static method

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

ModuleStart() public static method

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

Start() public static method

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
return void

Start() public static method

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.
return void

Stop() public static method

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
return void

Stop() public static method

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.
return void

TestDone() public static method

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

TestStart() public static method

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