C# Класс QUnit.Engine

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Reset void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Reset ( ) : void

Описание методов

Begin() публичный статический Метод

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
Результат void

Done() публичный статический Метод

Register a callback to fire whenever the test suite ends.
public static Done ( Action callback ) : void
callback Action
Результат void

Init() публичный статический Метод

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
Результат void

Log() публичный статический Метод

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
Результат void

ModuleDone() публичный статический Метод

Register a callback to fire whenever a module ends.
public static ModuleDone ( Action callback ) : void
callback Action
Результат void

ModuleStart() публичный статический Метод

Register a callback to fire whenever a module begins.
public static ModuleStart ( Action callback ) : void
callback Action
Результат void

Start() публичный статический Метод

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
Результат void

Start() публичный статический Метод

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.
Результат void

Stop() публичный статический Метод

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
Результат void

Stop() публичный статический Метод

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.
Результат void

TestDone() публичный статический Метод

Register a callback to fire whenever a test ends.
public static TestDone ( Action callback ) : void
callback Action
Результат void

TestStart() публичный статический Метод

Register a callback to fire whenever a test begins.
public static TestStart ( Action callback ) : void
callback Action
Результат void