|
Drag[en]gine Script Module DragonScript 1.32.1
|
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.
| void Dragengine.TestSystem.TestSuite.forEachTestCase | ( | Block | ablock | ) |
Visit test cases block.
Block receives as single parameter TestCase instance.
| Exception Dragengine.TestSystem.TestSuite.getException | ( | ) |
Exception if test suite failed.
| String Dragengine.TestSystem.TestSuite.getID | ( | ) |
Identifier.
| UnicodeString Dragengine.TestSystem.TestSuite.getName | ( | ) |
Display name.
| State Dragengine.TestSystem.TestSuite.getState | ( | ) |
Test state.
| TestCase Dragengine.TestSystem.TestSuite.getTestCaseAt | ( | int | index | ) |
Get test case at index.
| int Dragengine.TestSystem.TestSuite.getTestCaseCount | ( | ) |
Count of test cases.
| TestCase Dragengine.TestSystem.TestSuite.getTestCaseWithID | ( | String | id | ) |
Get test case with identifier or null if not found.
| int Dragengine.TestSystem.TestSuite.indexOfTestCase | ( | TestCase | testCase | ) |
Index of test or -1 if absent.
| TestSuite Dragengine.TestSystem.TestSuite.new | ( | String | id, |
| UnicodeString | name | ||
| ) |
Create test suite.
| void Dragengine.TestSystem.TestSuite.removeAllTestCases | ( | ) |
Remove all test cases.
| void Dragengine.TestSystem.TestSuite.removeTestCase | ( | TestCase | testCase | ) |
brief Remove test case.
| void Dragengine.TestSystem.TestSuite.setException | ( | Exception | exception | ) |
Set exception if test suite failed.
| void Dragengine.TestSystem.TestSuite.setState | ( | State | state | ) |
Set test state.
| void Dragengine.TestSystem.TestSuite.tearDown | ( | ) |
Tear down after test suite finished.
| Exception Dragengine.TestSystem.TestSuite.pException |
Exception if test case failed.
| String Dragengine.TestSystem.TestSuite.pID |
Identifier.
| UnicodeString Dragengine.TestSystem.TestSuite.pName |
Display name.
| State Dragengine.TestSystem.TestSuite.pState |
Test state.
| Array Dragengine.TestSystem.TestSuite.pTestCases |
Test cases as Array of TestCase.