Core of the component's testing capabilities. More...
Static Public Member Functions | |
static TestClass * | registerTestClass (std::function< TestClass *()> factoryFunction) |
static nkMemory::BufferCast< TestClass * > | getRegisteredClasses (nkMemory::StringView filter="") |
static unsigned int | getRegisteredTestClassCount () |
static void | run (const TestRunParameters ¶meters=TestRunParameters()) |
static nkMemory::BufferCast< TestClass * > | getAllTests () |
Core of the component's testing capabilities.
This class allows to statically register TestClass entries, to then run a test sequence. Typically, the testing classes are registered as the program launches through static calls. Macros are provided as part of a TestClass to ease the development and hide this registering requirement.
Client can then initiate a testing sequence with the run() method, specifying any required parameter.
|
static |
Registers a class, for it to be called during a run sequence if conditions allow.
factoryFunction | The factory function for the testing class. |
|
static |
Allows to retrieve a subset of the registered classes satisfying a filter on their names.
filter | The filter to filter the names with, in an ECMA script regex format. |
|
static |
|
static |
Runs a sequence of tests over the registered set of classes.
parameters | Parameters to drive the sequence run. |
|
static |