|
Drag[en]gine Script Module DragonScript 1.35
|
Test Suite. More...
Classes | |
| enum | State |
| Test State. More... | |
Public Member Functions | |
| void | addTestCase (TestCase testCase) |
| Add test case. | |
| void | forEachTestCase (Block ablock) |
| Visit test cases block. | |
| Exception | getException () |
| Exception if test suite failed. | |
| String | getID () |
| Identifier. | |
| UnicodeString | getName () |
| Display name. | |
| State | getState () |
| Test state. | |
| TestCase | getTestCaseAt (int index) |
| Get test case at index. | |
| int | getTestCaseCount () |
| Count of test cases. | |
| TestCase | getTestCaseWithID (String id) |
| Get test case with identifier or null if not found. | |
| int | indexOfTestCase (TestCase testCase) |
| Index of test or -1 if absent. | |
| TestSuite | new (String id, UnicodeString name) |
| Create test suite. | |
| void | removeAllTestCases () |
| Remove all test cases. | |
| void | removeTestCase (TestCase testCase) |
| void | setException (Exception exception) |
| Set exception if test suite failed. | |
| void | setState (State state) |
| Set test state. | |
| void | tearDown () |
| Tear down after test suite finished. | |
Public Attributes | |
| Exception | pException |
| Exception if test case failed. | |
| String | pID |
| Identifier. | |
| UnicodeString | pName |
| Display name. | |
| State | pState |
| Test state. | |
| Array | pTestCases |
| Test cases as Array of TestCase. | |
Test Suite.
Groups multiple TestCase. Test suites typically test various functionality of an object type. Also supports init() and tearDown() method. This allows to set up testing environment for a group of tests to run in avoiding the need to set them up for each test.
| void Dragengine.TestSystem.TestSuite.addTestCase | ( | TestCase | testCase | ) |
Add test case.
Referenced by tearDown().
| void Dragengine.TestSystem.TestSuite.forEachTestCase | ( | Block | ablock | ) |
Visit test cases block.
Block receives as single parameter TestCase instance.
References pException.
Referenced by tearDown().
| Exception Dragengine.TestSystem.TestSuite.getException | ( | ) |
Exception if test suite failed.
Referenced by removeAllTestCases().
| String Dragengine.TestSystem.TestSuite.getID | ( | ) |
Identifier.
Referenced by setException().
| UnicodeString Dragengine.TestSystem.TestSuite.getName | ( | ) |
Display name.
Referenced by getTestCaseCount().
| State Dragengine.TestSystem.TestSuite.getState | ( | ) |
Test state.
Referenced by getTestCaseAt().
| TestCase Dragengine.TestSystem.TestSuite.getTestCaseAt | ( | int | index | ) |
| int Dragengine.TestSystem.TestSuite.getTestCaseCount | ( | ) |
| TestCase Dragengine.TestSystem.TestSuite.getTestCaseWithID | ( | String | id | ) |
| int Dragengine.TestSystem.TestSuite.indexOfTestCase | ( | TestCase | testCase | ) |
| TestSuite Dragengine.TestSystem.TestSuite.new | ( | String | id, |
| UnicodeString | name ) |
| void Dragengine.TestSystem.TestSuite.removeAllTestCases | ( | ) |
Remove all test cases.
References getException(), pException, and setException().
Referenced by tearDown().
| void Dragengine.TestSystem.TestSuite.removeTestCase | ( | TestCase | testCase | ) |
brief Remove test case.
Referenced by tearDown().
| void Dragengine.TestSystem.TestSuite.setException | ( | Exception | exception | ) |
Set exception if test suite failed.
Referenced by removeAllTestCases().
| void Dragengine.TestSystem.TestSuite.setState | ( | State | state | ) |
Set test state.
Referenced by indexOfTestCase().
| void Dragengine.TestSystem.TestSuite.tearDown | ( | ) |
Tear down after test suite finished.
References addTestCase(), forEachTestCase(), getTestCaseAt(), getTestCaseCount(), getTestCaseWithID(), indexOfTestCase(), pTestCases, removeAllTestCases(), removeTestCase(), and tearDown().
Referenced by tearDown().
| Exception Dragengine.TestSystem.TestSuite.pException |
Exception if test case failed.
Referenced by forEachTestCase(), and removeAllTestCases().
| String Dragengine.TestSystem.TestSuite.pID |
Identifier.
Referenced by setException().
| UnicodeString Dragengine.TestSystem.TestSuite.pName |
Display name.
Referenced by getTestCaseCount().
| State Dragengine.TestSystem.TestSuite.pState |
Test state.
Referenced by getTestCaseWithID().
| Array Dragengine.TestSystem.TestSuite.pTestCases |
Test cases as Array of TestCase.
Referenced by tearDown().