|
FreeNOS
|
Reponsible for discovering and running tests. More...
#include <TestRunner.h>
Public Member Functions | |
| TestRunner (int argc, char **argv) | |
| Class constructor. More... | |
| virtual | ~TestRunner () |
| Destructor. More... | |
| TestReporter * | getReporter () |
| Get test reporter. More... | |
| int | run (void) |
| Run all discovered tests. More... | |
Protected Attributes | |
| int | m_argc |
| Program argument count. More... | |
| char ** | m_argv |
| Program argument values. More... | |
| TestReporter * | m_reporter |
| Reports test results. More... | |
Reponsible for discovering and running tests.
Definition at line 36 of file TestRunner.h.
| TestRunner::TestRunner | ( | int | argc, |
| char ** | argv | ||
| ) |
Class constructor.
| argc | Program argument count |
| argv | Program argument values |
Definition at line 27 of file TestRunner.cpp.
References m_argc, m_argv, m_reporter, TestReporter::setStatistics(), and strcmp().
|
virtual |
| TestReporter * TestRunner::getReporter | ( | ) |
Get test reporter.
Definition at line 65 of file TestRunner.cpp.
References m_reporter.
| int TestRunner::run | ( | void | ) |
Run all discovered tests.
Definition at line 70 of file TestRunner.cpp.
References TestReporter::begin(), TestReporter::collect(), TestReporter::finish(), TestReporter::getFailed(), TestSuite::getTests(), ListIterator< T >::hasCurrent(), StrictSingleton< TestSuite >::instance(), m_reporter, TestReporter::prepare(), and TestInstance::run().
Referenced by main().
|
protected |
|
protected |
|
protected |
Reports test results.
Definition at line 76 of file TestRunner.h.
Referenced by getReporter(), run(), TestRunner(), and ~TestRunner().
1.8.17