libept
|
Test registry. More...
#include <tests.h>
Public Member Functions | |
void | register_test_case (TestCase &test_case) |
Register a new test case. More... | |
std::vector< TestCaseResult > | run_tests (TestController &controller) |
Run all the registered tests using the given controller. More... | |
Static Public Member Functions | |
static TestRegistry & | get () |
Get the singleton instance of TestRegistry. More... | |
Public Attributes | |
std::vector< TestCase * > | entries |
All known test cases. More... | |
Test registry.
It collects information about all known test cases and takes care of running them.
|
static |
Get the singleton instance of TestRegistry.
Referenced by main(), and ept::tests::TestCase::TestCase().
void ept::tests::TestRegistry::register_test_case | ( | TestCase & | test_case | ) |
Register a new test case.
No memory management is done: test_case needs to exist for the whole lifetime of TestRegistry.
Referenced by ept::tests::TestCase::TestCase().
std::vector< TestCaseResult > ept::tests::TestRegistry::run_tests | ( | TestController & | controller | ) |
Run all the registered tests using the given controller.
References res.
std::vector<TestCase*> ept::tests::TestRegistry::entries |
All known test cases.