Drag[en]gine Script Module DragonScript
1.23
|
Test Runner. More...
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... | |
Test Runner.
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().
void Dragengine.TestSystem.TestRunner.addTestSuite | ( | TestSuite | testSuite | ) |
Add test suite.
void Dragengine.TestSystem.TestRunner.dispose | ( | ) |
Dispose of test suite.
void Dragengine.TestSystem.TestRunner.forEachTestSuite | ( | Block | ablock | ) |
Visit test suites block.
Block receives as single parameter TestSuite instance.
bool Dragengine.TestSystem.TestRunner.getRunning | ( | ) |
Test runner is running.
TestSuite Dragengine.TestSystem.TestRunner.getTestSuiteAt | ( | int | index | ) |
Get test suite at index.
int Dragengine.TestSystem.TestRunner.getTestSuiteCount | ( | ) |
Count of test suites.
TestSuite Dragengine.TestSystem.TestRunner.getTestSuiteWithID | ( | String | id | ) |
Get test suite with identifier or null if not found.
int Dragengine.TestSystem.TestRunner.indexOfTestSuite | ( | TestSuite | testSuite | ) |
Index of test or -1 if absent.
|
protected |
Init next test case.
TestRunner Dragengine.TestSystem.TestRunner.new | ( | ) |
Create test runner.
void Dragengine.TestSystem.TestRunner.onFrameUpdate | ( | float | elapsed | ) |
Frame update.
For use by internal frame updater only.
void Dragengine.TestSystem.TestRunner.removeAllTestSuites | ( | ) |
Remove all test suites.
void Dragengine.TestSystem.TestRunner.removeListener | ( | TestRunnerListener | listener | ) |
Remove listener.
void Dragengine.TestSystem.TestRunner.removeTestSuite | ( | TestSuite | testSuite | ) |
brief Remove test suite.
void Dragengine.TestSystem.TestRunner.start | ( | ) |
Start running tests.
void Dragengine.TestSystem.TestRunner.stop | ( | ) |
Stop running tests.