edbee - Qt Editor Library
|
This is the main test engine. More...
#include <test.h>
Public Member Functions | |
TestEngine () | |
The test engine constructor. More... | |
virtual | ~TestEngine () |
destructs the testengine More... | |
virtual bool | hasTest (TestCase *object) |
this method returns true if the given object is found More... | |
virtual void | addTest (TestCase *object) |
this metohd adds a test More... | |
virtual int | runAll () |
This method runs all tests. More... | |
virtual int | run (TestCase *object) |
This class executes all tests on the given test object (all private Slots) More... | |
virtual int | run (const QString &name) |
This method runs the given test. More... | |
virtual void | startRun () |
should be called before the first run when manually running single unit tests When using runAll you should not call this method More... | |
virtual void | endRun () |
This method should be called when your done with running single test When using runAll you should not call this method. More... | |
virtual OutputHandler * | outputHandler () |
virtual void | setOutputHandler (OutputHandler *handler) |
virtual TestCase * | currentTest () |
This method returns the current test. More... | |
virtual const char * | currentClassName () |
This method returns the current class name. More... | |
virtual QString | currentMethodName () |
This method returns the current method name. More... | |
virtual void | giveTestResult (TestResult *testResult) |
Appends the test result. More... | |
virtual QList< TestResult * > | testResultList () |
This method returns a list of test results. More... | |
This is the main test engine.
|
explicit |
The test engine constructor.
|
virtual |
destructs the testengine
|
virtual |
this metohd adds a test
object | the testcase to add |
|
inlinevirtual |
This method returns the current class name.
|
inlinevirtual |
This method returns the current method name.
|
inlinevirtual |
This method returns the current test.
|
virtual |
This method should be called when your done with running single test When using runAll you should not call this method.
|
virtual |
Appends the test result.
testResult | the result of the tests to add to the list of results |
|
virtual |
this method returns true if the given object is found
object | the testcase object |
|
inlinevirtual |
|
virtual |
This class executes all tests on the given test object (all private Slots)
object | hte object that needs to be run |
|
virtual |
This method runs the given test.
name | the name of this test |
|
virtual |
This method runs all tests.
|
inlinevirtual |
|
virtual |
should be called before the first run when manually running single unit tests When using runAll you should not call this method
|
inlinevirtual |
This method returns a list of test results.