#include <TestRunner.h>
Inheritance diagram for wxTestRunner::
Public Methods | |
wxTestRunner () | |
virtual | ~wxTestRunner () |
virtual void | wxtstdout (const char *psz,...) |
Captures "standard out" which is informational text output from tests. More... | |
virtual void | BeginTestCase (wxITest *pTest) |
Called by the test framework before a unit test is run. More... | |
virtual void | EndTestCase (wxITest *pTest) |
Called by the test framework after a unit test is run. More... | |
virtual void | OnTestFailure (wxITest *pTest, const char *pszMessage, const char *pszFile, unsigned long nLineNo) |
Called by the test framework when a test fails. More... | |
virtual wxString | GetQualifiedTestDescription (wxITest *pTest) |
virtual void | LoadTests () |
virtual void | OnFoundTestModule (wxTestModule &pTest) |
virtual void | OnTestAdded (wxITest *pTest) |
virtual void | SpawnThreads (wxITest *) |
Implementations of test-runners can implement this function to spawn additional threads to run test cases in a multi-threaded envoriment to check for thread saftey. More... | |
virtual void | BeginTests () |
virtual void | OnTestOutput (wxITest *pTest, const char *pszOutput) |
virtual void | OnErrorOutput (const char *pszOutput) |
virtual int | GetNumTestsRun () |
Retreives the number of individual test-cases run thus far. More... | |
virtual int | GetNumFailures () |
Retreives the number of failures that have occured thus far. More... | |
wxITest * | GetTestRoot () |
virtual void | GetOutputSubdir (wxITest *pTest, char *pszBuffer, bool bCreate) |
virtual wxString | GetOutputSubdir () |
virtual void | SetOutputSubDir (wxString strNewOutputSubDir) |
Protected Methods | |
virtual void | OpenFiles (wxITest *pTest) |
virtual void | CloseFiles () |
Protected Attributes | |
FILE * | m_stdout |
wxITest * | m_pCurrentTest |
wxTestModule * | m_modules |
int | m_nModuleCount |
int | m_nModuleCapacity |
int | m_nFailures |
int | m_nFailuresThisTestCase |
int | m_nTestsRun |
wxString | m_strLibDir |
wxString | m_strOutputDir |
wxTestSuite * | m_pRootTest |
|
|
|
|
|
Captures "standard out" which is informational text output from tests. If tests create any "standard out" output, then it must be identical each time the test is run. Reimplemented from wxITestRunner. |
|
Called by the test framework before a unit test is run.
Reimplemented from wxITestRunner. |
|
Called by the test framework after a unit test is run.
Reimplemented from wxITestRunner. |
|
Called by the test framework when a test fails. This function is overridden in specialized implementation of test-runners to perform specific tasks (e.g., to update the test runner's user interface or write to a log).
Reimplemented from wxITestRunner. |
|
|
|
|
|
|
|
|
|
Implementations of test-runners can implement this function to spawn additional threads to run test cases in a multi-threaded envoriment to check for thread saftey. This function is typically called from an a test's 'Run( wxITestRunner* )' function. It should spawn multiple threads and call the test's 'Run( wxITestRunner*, int nThreadId )' function
Reimplemented from wxITestRunner. Reimplemented in wxTestRunnerMT. |
|
|
|
|
|
|
|
Retreives the number of individual test-cases run thus far.
Reimplemented from wxITestRunner. |
|
Retreives the number of failures that have occured thus far.
Reimplemented from wxITestRunner. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 91 of file TestRunner.h. |
|
Definition at line 92 of file TestRunner.h. |
|
Definition at line 95 of file TestRunner.h. |
|
Definition at line 96 of file TestRunner.h. |
|
Definition at line 97 of file TestRunner.h. |
|
Definition at line 99 of file TestRunner.h. |
|
Definition at line 100 of file TestRunner.h. |
|
Definition at line 101 of file TestRunner.h. |
|
Definition at line 102 of file TestRunner.h. |
|
Definition at line 103 of file TestRunner.h. |
|
Definition at line 104 of file TestRunner.h. |