22 #ifndef ROBOTTESTINGFRAMEWORK_TESTSUITE_H 23 #define ROBOTTESTINGFRAMEWORK_TESTSUITE_H 139 std::size_t
size()
const;
146 virtual bool setup();
166 #endif // ROBOTTESTINGFRAMEWORK_TESTSUITE_H FixtureContainer fixtureManagers
std::size_t size() const
returns the number of tests in this suite
std::vector< FixtureManager * > FixtureContainer
std::vector< FixtureManager * >::iterator FixtureIterator
bool succeeded() const override
succeeded
void reset()
Clear the test list.
The TestResult class is used to deliver the test results including any error and failures produced by...
TestResult * getResult()
getResult returns an instance of TestResult if run(TestResult &result) has been already called by a T...
void addFixtureManager(FixtureManager *manager)
addFixtureManager add a fixture manager for the current test suite.
void interrupt() override
interrupt interrupts the current test run
virtual void tearDown()
tearDown is called after the test run
The simplest form of a test unit.
TestSuite(std::string name)
TestSuite constructor.
std::vector< Test * >::iterator TestIterator
A formated message with details.
TestMessage fixtureMessage
virtual ~TestSuite()
TestSuite destructor.
void removeTest(Test *test)
Remove a test.
std::vector< Test * > TestContainer
void addTest(Test *test)
Adding a new test.
void run(TestResult &rsl) override
the main caller of a TestSuite inherited from Test Class.
std::vector< FixtureManager * >::reverse_iterator FixtureRIterator
virtual bool setup()
setup is called before the test run
The FixtureManager can be used to to setup any fixture which is required for the tests before executi...
void fixtureCollapsed(TestMessage reason) override
fixtureCollapsed is called by a fixture manager (if it is already setup) to inform the test suite tha...
The TestSuite holds a group of tests.