Envision
A visual programming IDE for object-oriented languages
|
The Test template class is used to define a new test. More...
Public Member Functions | |
virtual void | runCustom (TestResults &testResults, bool &allChecksPassedFlag) override |
Implements custom test behavior. More... | |
Public Member Functions inherited from SelfTest::TestBase | |
TestBase (const QString &name) | |
virtual | ~TestBase () |
const QString & | getName () const |
void | run (TestResults &testResults) |
Runs the test and reports any failures to the specified test results. More... | |
Protected Member Functions | |
Test () | |
Protected Attributes | |
bool | allChecksPassedFlag {true} |
TestResults | testResults |
Static Protected Attributes | |
static bool | initTrigger = Test::init() |
Static Private Member Functions | |
static bool | init () |
Additional Inherited Members | |
Public Types inherited from SelfTest::TestBase | |
using | TestConstructor = std::function< TestBase *()> |
The Test template class is used to define a new test.
Purposefully outside of the namespace for easy access
pluginClass | the name of the class of the current plugin. This is the class that implements the EnvisionPlugin interface. |
testName | the name of this test. This name can be used at the command line to request that this specific test be started. |
|
inlineprotected |
|
inlinestaticprivate |
|
inlineoverridevirtual |
Implements custom test behavior.
This function must be implemented for each test.
testResults | Test failures are added here. |
passed | must be set to false if the test failed. |
Implements SelfTest::TestBase.
|
protected |
|
staticprotected |
|
protected |