22 #ifndef ROBOTTESTINGFRAMEWORK_TESTRESULTCOLLECTOR_H
23 #define ROBOTTESTINGFRAMEWORK_TESTRESULTCOLLECTOR_H
The base class of any test result listeners.
A formated message with details.
The TestResultCollector class can be used to store all the events issued by the test cases,...
unsigned int failedCount()
failedCount gets the number of failed test cases.
std::vector< ResultEvent * >::iterator EventResultIterator
void addFailure(const Test *test, TestMessage msg) override
This is called when a failure occurred during test run.
void startTestSuite(const Test *test) override
This is called when a TestSuite is started.
void endTestSuite(const Test *test) override
This is called when a TestSuite is finished.
unsigned int failedSuiteCount()
failedCount gets the number of failed test suites.
unsigned int nSuitePasses
void addError(const Test *test, TestMessage msg) override
This is called when an error occurred during test run.
unsigned int passedSuiteCount()
passedCount gets the number of passed test suites.
EventResultContainer events
EventResultContainer & getResults()
getResults return any result event caught by the TestResultCollector.
std::vector< ResultEvent * > EventResultContainer
void startTest(const Test *test) override
This is called when a Test is started.
unsigned int suiteCount()
suiteCount gets the number of test suites.
unsigned int nSuiteFailures
void addReport(const Test *test, TestMessage msg) override
This is called to report any arbitrary message from tests.
unsigned int testCount()
testCount gets the number of test cases.
unsigned int passedCount()
passedCount gets the number of passed test cases.
void endTest(const Test *test) override
This is called when a Test is finished.
~TestResultCollector() override
TestResultCollector destructor.
TestResultCollector()
TestResultCollector constructor.
void reset()
reset clear the results
The simplest form of a test unit.