libept
Public Member Functions | Public Attributes | List of all members
ept::tests::SimpleTestController Struct Reference

Simple default implementation of TestController. More...

#include <tests.h>

Inheritance diagram for ept::tests::SimpleTestController:
ept::tests::TestController

Public Member Functions

bool test_case_begin (const TestCase &test_case, const TestCaseResult &test_case_result) override
 Called before running a test case. More...
 
void test_case_end (const TestCase &test_case, const TestCaseResult &test_case_result) override
 Called after running a test case. More...
 
bool test_method_begin (const TestMethod &test_method, const TestMethodResult &test_method_result) override
 Called before running a test method. More...
 
void test_method_end (const TestMethod &test_method, const TestMethodResult &test_method_result) override
 Called after running a test method. More...
 
bool test_method_should_run (const std::string &fullname) const
 
- Public Member Functions inherited from ept::tests::TestController
virtual ~TestController ()
 

Public Attributes

std::string whitelist
 Any method not matching this glob expression will not be run. More...
 
std::string blacklist
 Any method matching this glob expression will not be run. More...
 

Detailed Description

Simple default implementation of TestController.

It does progress printing to stdout and basic glob-based test method filtering.

Member Function Documentation

◆ test_case_begin()

bool ept::tests::SimpleTestController::test_case_begin ( const TestCase test_case,
const TestCaseResult test_case_result 
)
overridevirtual

Called before running a test case.

Returns
true if the test case should be run, false if it should be skipped

Reimplemented from ept::tests::TestController.

References ept::tests::TestCase::methods, and ept::tests::TestCase::name.

◆ test_case_end()

void ept::tests::SimpleTestController::test_case_end ( const TestCase test_case,
const TestCaseResult test_case_result 
)
overridevirtual

Called after running a test case.

Reimplemented from ept::tests::TestController.

References ept::tests::TestCaseResult::is_success(), and ept::tests::TestCaseResult::skipped.

◆ test_method_begin()

bool ept::tests::SimpleTestController::test_method_begin ( const TestMethod test_method,
const TestMethodResult test_method_result 
)
overridevirtual

Called before running a test method.

Returns
true if the test method should be run, false if it should be skipped

Reimplemented from ept::tests::TestController.

References ept::tests::TestMethod::name, and ept::tests::TestMethodResult::test_case.

◆ test_method_end()

void ept::tests::SimpleTestController::test_method_end ( const TestMethod test_method,
const TestMethodResult test_method_result 
)
overridevirtual

Called after running a test method.

Reimplemented from ept::tests::TestController.

References ept::tests::TestMethodResult::is_success(), and ept::tests::TestMethodResult::skipped.

◆ test_method_should_run()

bool ept::tests::SimpleTestController::test_method_should_run ( const std::string &  fullname) const

Member Data Documentation

◆ blacklist

std::string ept::tests::SimpleTestController::blacklist

Any method matching this glob expression will not be run.

Referenced by main().

◆ whitelist

std::string ept::tests::SimpleTestController::whitelist

Any method not matching this glob expression will not be run.

Referenced by main().


The documentation for this struct was generated from the following files: