Drag[en]gine Script Module DragonScript  1.23
Dragengine.TestSystem.TestRunner Class Reference

Test Runner. More...

Inheritance diagram for Dragengine.TestSystem.TestRunner:

Public Member Functions

void addTestSuite (TestSuite testSuite)
 Add test suite. More...
 
void dispose ()
 Dispose of test suite. More...
 
void forEachTestSuite (Block ablock)
 Visit test suites block. More...
 
bool getRunning ()
 Test runner is running. More...
 
TestSuite getTestSuiteAt (int index)
 Get test suite at index. More...
 
int getTestSuiteCount ()
 Count of test suites. More...
 
TestSuite getTestSuiteWithID (String id)
 Get test suite with identifier or null if not found. More...
 
int indexOfTestSuite (TestSuite testSuite)
 Index of test or -1 if absent. More...
 
TestRunner new ()
 Create test runner. More...
 
void onFrameUpdate (float elapsed)
 Frame update. More...
 
void removeAllTestSuites ()
 Remove all test suites. More...
 
void removeListener (TestRunnerListener listener)
 Remove listener. More...
 
void removeTestSuite (TestSuite testSuite)
 
void start ()
 Start running tests. More...
 
void stop ()
 Stop running tests. More...
 

Protected Member Functions

void initNextTestCase ()
 Init next test case. More...
 

Detailed Description

Test Runner.

Version
1.5

Runs test suited. To use the test runner add one or more TestSuite instance. Add listeners to be notified about the progress of testing. Then call start() to start running tests. The start() method returns immediately. The tests run during frame updates until all test suites finished running. Running tests can be stopped immediately by calling stop().

Member Function Documentation

◆ addTestSuite()

void Dragengine.TestSystem.TestRunner.addTestSuite ( TestSuite  testSuite)

Add test suite.

◆ dispose()

void Dragengine.TestSystem.TestRunner.dispose ( )

Dispose of test suite.

◆ forEachTestSuite()

void Dragengine.TestSystem.TestRunner.forEachTestSuite ( Block  ablock)

Visit test suites block.

Block receives as single parameter TestSuite instance.

◆ getRunning()

bool Dragengine.TestSystem.TestRunner.getRunning ( )

Test runner is running.

◆ getTestSuiteAt()

TestSuite Dragengine.TestSystem.TestRunner.getTestSuiteAt ( int  index)

Get test suite at index.

◆ getTestSuiteCount()

int Dragengine.TestSystem.TestRunner.getTestSuiteCount ( )

Count of test suites.

◆ getTestSuiteWithID()

TestSuite Dragengine.TestSystem.TestRunner.getTestSuiteWithID ( String  id)

Get test suite with identifier or null if not found.

◆ indexOfTestSuite()

int Dragengine.TestSystem.TestRunner.indexOfTestSuite ( TestSuite  testSuite)

Index of test or -1 if absent.

◆ initNextTestCase()

void Dragengine.TestSystem.TestRunner.initNextTestCase ( )
protected

Init next test case.

◆ new()

TestRunner Dragengine.TestSystem.TestRunner.new ( )

Create test runner.

◆ onFrameUpdate()

void Dragengine.TestSystem.TestRunner.onFrameUpdate ( float  elapsed)

Frame update.

For use by internal frame updater only.

◆ removeAllTestSuites()

void Dragengine.TestSystem.TestRunner.removeAllTestSuites ( )

Remove all test suites.

◆ removeListener()

void Dragengine.TestSystem.TestRunner.removeListener ( TestRunnerListener  listener)

Remove listener.

◆ removeTestSuite()

void Dragengine.TestSystem.TestRunner.removeTestSuite ( TestSuite  testSuite)

brief Remove test suite.

◆ start()

void Dragengine.TestSystem.TestRunner.start ( )

Start running tests.

◆ stop()

void Dragengine.TestSystem.TestRunner.stop ( )

Stop running tests.


The documentation for this class was generated from the following file: