|
libwreport
3.5
|
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. | |
Static Public Member Functions | |
| static TestRegistry & | get () |
| Get the singleton instance of TestRegistry. | |
Data Fields | |
| std::vector< TestCase * > | entries |
| All known test cases. | |
Test registry.
It collects information about all known test cases and takes care of running them.
| void wreport::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.
1.8.9.1