The TestRunner class runs the tests added as TestCase or TestSuite.
More...
#include <robottestingframework/TestRunner.h>
The TestRunner class runs the tests added as TestCase or TestSuite.
It simply goes through a list of the tests and run them one after each other.
Here's an example of using a TestRunner:
#include <cstdio>
{
public:
MyTest() :
{
}
bool setup(int argc, char** argv) override
{
return true;
}
void tearDown() override
{
}
{
}
};
int main(int argc, char** argv)
{
MyTest atest;
}
- Examples:
- simple_collector.cpp, simple_fixture.cpp, simple_runner.cpp, simple_suite.cpp, and simple_web.cpp.
Definition at line 41 of file TestRunner.h.
◆ TestContainer
◆ TestIterator
◆ TestRunner()
robottestingframework::TestRunner::TestRunner |
( |
| ) |
|
◆ ~TestRunner()
virtual robottestingframework::TestRunner::~TestRunner |
( |
| ) |
|
|
virtual |
◆ addTest()
void robottestingframework::TestRunner::addTest |
( |
Test * |
test | ) |
|
◆ interrupt()
void robottestingframework::TestRunner::interrupt |
( |
| ) |
|
interrupt interrupts the current test run
◆ removeTest()
void robottestingframework::TestRunner::removeTest |
( |
Test * |
test | ) |
|
Remove a test.
- Parameters
-
test | pointer to a Test object |
◆ reset()
void robottestingframework::TestRunner::reset |
( |
| ) |
|
◆ run()
void robottestingframework::TestRunner::run |
( |
TestResult & |
result | ) |
|
◆ current
Test* robottestingframework::TestRunner::current |
|
private |
◆ interrupted
bool robottestingframework::TestRunner::interrupted |
|
private |
◆ tests
The documentation for this class was generated from the following file:
- src/robottestingframework/include/robottestingframework/TestRunner.h