Go to the documentation of this file.
18 #ifndef __LIBTEST_TESTREPORTER_H
19 #define __LIBTEST_TESTREPORTER_H
virtual void reportBefore(TestInstance &test)=0
Report start of a test.
virtual ~TestReporter()
Destructor.
int m_argc
Argument count.
uint getOk() const
Get OK count.
virtual void begin(List< TestInstance * > &tests)
Begin testing.
bool m_statistics
Final statistics on/off.
bool m_multiline
Multi line output.
virtual void finish(List< TestInstance * > &tests)
Finish testing.
unsigned int uint
Unsigned integer number.
uint getSkipped() const
Get skip count.
virtual void prepare(TestInstance &test)
Prepare for next test.
char ** m_argv
Argument values.
uint m_ok
Test statistics.
virtual void collect(TestInstance &test, TestResult &result)
Collect test statistics.
virtual void reportBegin(List< TestInstance * > &tests)=0
Report start of testing.
void setMultiline(bool value)
Set multine mode on/off.
TestReporter(int argc, char **argv)
Constructor.
Represents a Test result created by a TestInstance.
virtual void reportFinish(List< TestInstance * > &tests)=0
Report completion of all tests.
void setReport(bool value)
Set reporting on/off.
virtual void reportAfter(TestInstance &test, TestResult &result)=0
Report finish of a test.
bool m_report
Report on/off.
Responsible for outputting test results.
void setStatistics(bool value)
Set final statistics on/off.
uint getFailed() const
Get fail count.
Represents a test instance.