|
Envision
A visual programming IDE for object-oriented languages
|
The TestManager class manages test registrations and execution for each plug-in. More...
Static Public Member Functions | |
| static void | add (TestBase::TestConstructor test, const QString &name) |
| Adds a new test to the list of tests. More... | |
| static TestResults | runAllTests () |
| Runs all tests registered for this plug-in. More... | |
| static TestResults | runTest (const QString &name) |
| Runs the specified test for this plug-in. More... | |
Private Member Functions | |
| TestManager () | |
| This is a static class. More... | |
Static Private Attributes | |
| static QMap< QString, TestBase::TestConstructor > * | testConstructors = nullptr |
| A list of all test constructors. More... | |
The TestManager class manages test registrations and execution for each plug-in.
| T | The plug-in class for this plug-in. This is the class that implements the EnvisionPlugin interface. It is necessary that each plug-in has its own instantiation of the TestManager, since this manager contains a list of all test cases that the plug-in has. |
|
inlineprivate |
This is a static class.
Object of this class can not be created.
|
inlinestatic |
Adds a new test to the list of tests.
| test | The constructor of the test class that implements this test. |
| name | The name of this test. |
|
inlinestatic |
Runs all tests registered for this plug-in.
|
inlinestatic |
Runs the specified test for this plug-in.
| name | The string id of the test to run. |
|
staticprivate |
A list of all test constructors.
Test classes are not created unless requested.