#include <ITest.h>
Inheritance diagram for wxITest::
Public Types | |
enum | TestState { unknown, running, pass, fail } |
The current state of this test. More... | |
Public Methods | |
virtual void | Delete ()=0 |
Destroys and deallocates the test, recursively if necessary. More... | |
virtual const char * | GetDescription ()=0 |
Retreive a short human-readable description of this test. More... | |
virtual TestState | GetState ()=0 |
Retreive the current TestState of this test. More... | |
virtual void | SetState (TestState newState)=0 |
Assign a new state to this test. More... | |
virtual void | Run (wxITestRunner *pResult)=0 |
Called by the test-runner to begin execution of the test in a single-threaded context. More... | |
virtual void | Run (wxITestRunner *pResult, long unsigned nThreadId)=0 |
Called by the test-runner to begin execution of the test in a multi-threaded context. More... | |
virtual bool | IsThreadSafe ()=0 |
Enables the test-runner to determine if this test is intended to be thread-safe. More... | |
virtual int | GetNumSubTests ()=0 |
Retreive the number of sub-tests for this test. More... | |
virtual void | GetSubTests (wxITest **pOutTests)=0 |
Retreive the child-tests of this test. More... | |
virtual const wxITest * | GetParent () const=0 |
Retreive the parent of this test. More... | |
virtual wxITest * | GetParent ()=0 |
virtual void | SetParent (wxITest *pParent)=0 |
Assign a new parent to this test. More... |
This includes individual test cases and test suites. This class consists of nothing but pure virtual functions.
Definition at line 29 of file ITest.h.
|
The current state of this test.
A test may be in one of the following states: |
|
Destroys and deallocates the test, recursively if necessary.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Retreive a short human-readable description of this test.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Retreive the current TestState of this test. See the TestState enum.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Assign a new state to this test. This method is usually called by the test-runner after the test has completed.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Called by the test-runner to begin execution of the test in a single-threaded context.
Reimplemented in wxTestBase, wxTestCase, wxTestCaseMultiThreaded, and wxTestSuite. |
|
Called by the test-runner to begin execution of the test in a multi-threaded context.
Reimplemented in wxTestBase, wxTestCase, wxTestCaseMultiThreaded, and wxTestSuite. |
|
Enables the test-runner to determine if this test is intended to be thread-safe. This useful for test-runners that may want to run the test in multiple threads simultaneously to test for resource conflicts and deadlocks. Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Retreive the number of sub-tests for this test.
Reimplemented in wxTestBase, wxTestCase, wxTestCaseMultiThreaded, and wxTestSuite. |
|
Retreive the child-tests of this test.
Reimplemented in wxTestBase, wxTestCase, wxTestCaseMultiThreaded, and wxTestSuite. |
|
Retreive the parent of this test.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |
|
Assign a new parent to this test.
Reimplemented in wxTestBase, wxTestCase, and wxTestSuite. |