Go to the documentation of this file.
35 for (
int i = 0; i < argc; i++)
37 if (
strcmp(argv[i],
"-t") == 0 ||
strcmp(argv[i],
"--tap") == 0)
45 else if (
strcmp(argv[i],
"-x") == 0 ||
strcmp(argv[i],
"--xml") == 0)
53 else if (
strcmp(argv[i],
"-n") == 0)
virtual ~TestRunner()
Destructor.
int run(void)
Run all discovered tests.
static TestSuite * instance()
Retrieve the instance.
TestReporter * getReporter()
Get test reporter.
Output TestResults to standard output in XML format.
virtual void begin(List< TestInstance * > &tests)
Begin testing.
List< TestInstance * > * getTests()
Retrieve a list of all tests.
Output TestResults to standard output.
virtual void finish(List< TestInstance * > &tests)
Finish testing.
virtual TestResult run()=0
Run the test instance.
int m_argc
Program argument count.
virtual void prepare(TestInstance &test)
Prepare for next test.
virtual bool hasCurrent() const
Check if there is a current item on the List.
virtual void collect(TestInstance &test, TestResult &result)
Collect test statistics.
int strcmp(const char *dest, const char *src)
Compare two strings.
Output TestResults in TAP format to stdout.
Represents a Test result created by a TestInstance.
TestReporter * m_reporter
Reports test results.
char ** m_argv
Program argument values.
Responsible for outputting test results.
TestRunner(int argc, char **argv)
Class constructor.
void setStatistics(bool value)
Set final statistics on/off.
uint getFailed() const
Get fail count.
Represents a test instance.