Collection of suites and main interface of the Testing framework.
More...
|
| static proto int | GetNSuites () |
| | Returns number of default test suites.
|
| |
| static proto TestSuite | GetSuite (int handle) |
| | Returns default test suite.
|
| |
| static proto TestSuite | ActiveSuite () |
| | Returns currently active TestSuite or null when none is active.
|
| |
| static proto bool | Finished () |
| | Returns true when all tests and suites finished.
|
| |
| static proto void | Begin (array< ref TestSuite > suites=null) |
| | Starts up the testing process and initializes the structures.
|
| |
| static proto bool | Run () |
| | Starts the testing process.
|
| |
| static proto void | End () |
| | Finalizes the testing process.
|
| |
| static proto string | Report (bool omitSkipped=false) |
| | Generates a xml report.
|
| |
| static proto string | EscapeForXml (string text) |
| | Replaces characters with special meaning in XML so that result can be used in XML attribute value or XML element body.
|
| |
| static proto void | GetTestTypes (notnull out array< TypeName > outTypes) |
| | Obtain all types derived from TestBase which are decorated with Test attribute.
|
| |
|
| proto external ref Managed | Clone () |
| | Return shallow copy of object, or null if it is not allowed (not public constructor)
|
| |
Collection of suites and main interface of the Testing framework.
◆ ActiveSuite()
| static proto TestSuite TestHarness.ActiveSuite |
( |
| ) |
|
|
static |
Returns currently active TestSuite or null when none is active.
◆ Begin()
| static proto void TestHarness.Begin |
( |
array< ref TestSuite > | suites = null | ) |
|
|
static |
Starts up the testing process and initializes the structures.
◆ End()
| static proto void TestHarness.End |
( |
| ) |
|
|
static |
Finalizes the testing process.
◆ EscapeForXml()
Replaces characters with special meaning in XML so that result can be used in XML attribute value or XML element body.
Replacement is done as follows:
| special character | escape sequence |
| < | < |
| > | > |
| & | & |
| ' | ' |
| " | " |
◆ Finished()
| static proto bool TestHarness.Finished |
( |
| ) |
|
|
static |
Returns true when all tests and suites finished.
◆ GetNSuites()
| static proto int TestHarness.GetNSuites |
( |
| ) |
|
|
static |
Returns number of default test suites.
◆ GetSuite()
Returns default test suite.
◆ GetTestTypes()
| static proto void TestHarness.GetTestTypes |
( |
notnull out array< TypeName > | outTypes | ) |
|
|
static |
Obtain all types derived from TestBase which are decorated with Test attribute.
◆ Report()
| static proto string TestHarness.Report |
( |
bool | omitSkipped = false | ) |
|
|
static |
◆ Run()
| static proto bool TestHarness.Run |
( |
| ) |
|
|
static |
Starts the testing process.
Returns true when all tests have finished. If some of them are still in progress false is reported.
The documentation for this interface was generated from the following file:
- GameLib/generated/ScriptTestingFramework/TestHarness.c