libept
|
Simple default implementation of TestController. More...
#include <tests.h>
Public Member Functions | |
bool | test_case_begin (const TestCase &test_case, const TestCaseResult &test_case_result) override |
Called before running a test case. | |
void | test_case_end (const TestCase &test_case, const TestCaseResult &test_case_result) override |
Called after running a test case. | |
bool | test_method_begin (const TestMethod &test_method, const TestMethodResult &test_method_result) override |
Called before running a test method. | |
void | test_method_end (const TestMethod &test_method, const TestMethodResult &test_method_result) override |
Called after running a test method. | |
bool | test_method_should_run (const std::string &fullname) const |
![]() | |
virtual | ~TestController () |
virtual bool | test_case_begin (const TestCase &test_case, const TestCaseResult &test_case_result) |
Called before running a test case. | |
virtual void | test_case_end (const TestCase &test_case, const TestCaseResult &test_case_result) |
Called after running a test case. | |
virtual bool | test_method_begin (const TestMethod &test_method, const TestMethodResult &test_method_result) |
Called before running a test method. | |
virtual void | test_method_end (const TestMethod &test_method, const TestMethodResult &test_method_result) |
Called after running a test method. | |
Public Attributes | |
std::string | whitelist |
Any method not matching this glob expression will not be run. | |
std::string | blacklist |
Any method matching this glob expression will not be run. | |
Simple default implementation of TestController.
It does progress printing to stdout and basic glob-based test method filtering.
|
overridevirtual |
Called before running a test case.
Reimplemented from ept::tests::TestController.
References ept::tests::TestCase::methods, ept::tests::TestCase::name, and test_method_should_run().
|
overridevirtual |
Called after running a test case.
Reimplemented from ept::tests::TestController.
References ept::tests::TestCaseResult::is_success(), and ept::tests::TestCaseResult::skipped.
|
overridevirtual |
Called before running a test method.
Reimplemented from ept::tests::TestController.
References ept::tests::TestMethod::name, ept::tests::TestMethodResult::test_case, and test_method_should_run().
|
overridevirtual |
Called after running a test method.
Reimplemented from ept::tests::TestController.
References ept::tests::TestMethodResult::is_success(), and ept::tests::TestMethodResult::skipped.
bool ept::tests::SimpleTestController::test_method_should_run | ( | const std::string & | fullname | ) | const |
References blacklist, and whitelist.
Referenced by test_case_begin(), and test_method_begin().
std::string ept::tests::SimpleTestController::blacklist |
Any method matching this glob expression will not be run.
Referenced by main(), and test_method_should_run().
std::string ept::tests::SimpleTestController::whitelist |
Any method not matching this glob expression will not be run.
Referenced by main(), and test_method_should_run().