|
FreeNOS
|
Responsible for outputting test results. More...
#include <TestReporter.h>
Public Member Functions | |
| TestReporter (int argc, char **argv) | |
| Constructor. More... | |
| virtual | ~TestReporter () |
| Destructor. More... | |
| uint | getOk () const |
| Get OK count. More... | |
| uint | getFailed () const |
| Get fail count. More... | |
| uint | getSkipped () const |
| Get skip count. More... | |
| void | setReport (bool value) |
| Set reporting on/off. More... | |
| void | setStatistics (bool value) |
| Set final statistics on/off. More... | |
| void | setMultiline (bool value) |
| Set multine mode on/off. More... | |
| virtual void | prepare (TestInstance &test) |
| Prepare for next test. More... | |
| virtual void | collect (TestInstance &test, TestResult &result) |
| Collect test statistics. More... | |
| virtual void | begin (List< TestInstance * > &tests) |
| Begin testing. More... | |
| virtual void | finish (List< TestInstance * > &tests) |
| Finish testing. More... | |
Protected Member Functions | |
| virtual void | reportBegin (List< TestInstance * > &tests)=0 |
| Report start of testing. More... | |
| virtual void | reportBefore (TestInstance &test)=0 |
| Report start of a test. More... | |
| virtual void | reportAfter (TestInstance &test, TestResult &result)=0 |
| Report finish of a test. More... | |
| virtual void | reportFinish (List< TestInstance * > &tests)=0 |
| Report completion of all tests. More... | |
Protected Attributes | |
| int | m_argc |
| Argument count. More... | |
| char ** | m_argv |
| Argument values. More... | |
| bool | m_report |
| Report on/off. More... | |
| bool | m_statistics |
| Final statistics on/off. More... | |
| bool | m_multiline |
| Multi line output. More... | |
| uint | m_ok |
| Test statistics. More... | |
| uint | m_fail |
| uint | m_skip |
Responsible for outputting test results.
Definition at line 35 of file TestReporter.h.
| TestReporter::TestReporter | ( | int | argc, |
| char ** | argv | ||
| ) |
Constructor.
Definition at line 21 of file TestReporter.cpp.
References m_argc, m_argv, m_fail, m_multiline, m_ok, m_report, m_skip, and m_statistics.
|
virtual |
Destructor.
Definition at line 33 of file TestReporter.cpp.
|
virtual |
Begin testing.
Definition at line 88 of file TestReporter.cpp.
References m_report, and reportBegin().
Referenced by TestRunner::run().
|
virtual |
Collect test statistics.
Definition at line 73 of file TestReporter.cpp.
References TestResult::isFailed(), TestResult::isOK(), TestResult::isSkipped(), m_fail, m_ok, m_report, m_skip, and reportAfter().
Referenced by TestRunner::run().
|
virtual |
Finish testing.
Definition at line 94 of file TestReporter.cpp.
References m_statistics, and reportFinish().
Referenced by TestRunner::run().
| uint TestReporter::getFailed | ( | ) | const |
Get fail count.
Definition at line 42 of file TestReporter.cpp.
References m_fail.
Referenced by TestRunner::run().
| uint TestReporter::getOk | ( | ) | const |
| uint TestReporter::getSkipped | ( | ) | const |
|
virtual |
Prepare for next test.
Definition at line 67 of file TestReporter.cpp.
References m_report, and reportBefore().
Referenced by TestRunner::run().
|
protectedpure virtual |
Report finish of a test.
Implemented in XMLReporter, TAPReporter, and StdoutReporter.
Referenced by collect().
|
protectedpure virtual |
Report start of a test.
Implemented in XMLReporter, TAPReporter, and StdoutReporter.
Referenced by prepare().
|
protectedpure virtual |
Report start of testing.
Implemented in XMLReporter, TAPReporter, and StdoutReporter.
Referenced by begin().
|
protectedpure virtual |
Report completion of all tests.
Implemented in XMLReporter, TAPReporter, and StdoutReporter.
Referenced by finish().
| void TestReporter::setMultiline | ( | bool | value | ) |
| void TestReporter::setReport | ( | bool | value | ) |
| void TestReporter::setStatistics | ( | bool | value | ) |
Set final statistics on/off.
Definition at line 57 of file TestReporter.cpp.
References m_statistics.
Referenced by TestRunner::TestRunner().
|
protected |
|
protected |
Argument values.
Definition at line 127 of file TestReporter.h.
Referenced by StdoutReporter::reportAfter(), StdoutReporter::reportBefore(), XMLReporter::reportBefore(), StdoutReporter::reportBegin(), TAPReporter::reportBegin(), XMLReporter::reportBegin(), StdoutReporter::reportFinish(), and TestReporter().
|
protected |
Definition at line 139 of file TestReporter.h.
Referenced by collect(), getFailed(), StdoutReporter::reportFinish(), TAPReporter::reportFinish(), XMLReporter::reportFinish(), and TestReporter().
|
protected |
Multi line output.
Definition at line 136 of file TestReporter.h.
Referenced by StdoutReporter::reportAfter(), TAPReporter::reportAfter(), XMLReporter::reportAfter(), StdoutReporter::reportBefore(), XMLReporter::reportBefore(), StdoutReporter::reportBegin(), TAPReporter::reportBegin(), XMLReporter::reportBegin(), TAPReporter::reportFinish(), XMLReporter::reportFinish(), setMultiline(), and TestReporter().
|
protected |
Test statistics.
Definition at line 139 of file TestReporter.h.
Referenced by collect(), getOk(), StdoutReporter::reportFinish(), TAPReporter::reportFinish(), XMLReporter::reportFinish(), and TestReporter().
|
protected |
Report on/off.
Definition at line 130 of file TestReporter.h.
Referenced by begin(), collect(), prepare(), setReport(), and TestReporter().
|
protected |
Definition at line 139 of file TestReporter.h.
Referenced by collect(), getSkipped(), StdoutReporter::reportFinish(), TAPReporter::reportFinish(), XMLReporter::reportFinish(), and TestReporter().
|
protected |
Final statistics on/off.
Definition at line 133 of file TestReporter.h.
Referenced by finish(), setStatistics(), and TestReporter().
1.8.17