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

Abstract interface for the objects that supervise test execution. More...

#include <tests.h>

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

Public Member Functions

virtual ~TestController ()
 
virtual bool test_case_begin (const TestCase &test_case, const TestCaseResult &test_case_result)
 Called before running a test case. More...
 
virtual void test_case_end (const TestCase &test_case, const TestCaseResult &test_case_result)
 Called after running a test case. More...
 
virtual bool test_method_begin (const TestMethod &test_method, const TestMethodResult &test_method_result)
 Called before running a test method. More...
 
virtual void test_method_end (const TestMethod &test_method, const TestMethodResult &test_method_result)
 Called after running a test method. More...
 

Detailed Description

Abstract interface for the objects that supervise test execution.

This can be used for printing progress, or to skip test methods or test cases.

Constructor & Destructor Documentation

◆ ~TestController()

virtual ept::tests::TestController::~TestController ( )
inlinevirtual

Member Function Documentation

◆ test_case_begin()

virtual bool ept::tests::TestController::test_case_begin ( const TestCase test_case,
const TestCaseResult test_case_result 
)
inlinevirtual

Called before running a test case.

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

Reimplemented in ept::tests::SimpleTestController.

Referenced by ept::tests::TestCase::run_tests().

◆ test_case_end()

virtual void ept::tests::TestController::test_case_end ( const TestCase test_case,
const TestCaseResult test_case_result 
)
inlinevirtual

Called after running a test case.

Reimplemented in ept::tests::SimpleTestController.

Referenced by ept::tests::TestCase::run_tests().

◆ test_method_begin()

virtual bool ept::tests::TestController::test_method_begin ( const TestMethod test_method,
const TestMethodResult test_method_result 
)
inlinevirtual

Called before running a test method.

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

Reimplemented in ept::tests::SimpleTestController.

Referenced by ept::tests::TestCase::run_test().

◆ test_method_end()

virtual void ept::tests::TestController::test_method_end ( const TestMethod test_method,
const TestMethodResult test_method_result 
)
inlinevirtual

Called after running a test method.

Reimplemented in ept::tests::SimpleTestController.

Referenced by ept::tests::TestCase::run_test().


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