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

Result of running a whole test case. More...

#include <tests.h>

Public Member Functions

 TestCaseResult (const std::string &test_case)
 
void set_setup_failed ()
 
void set_setup_failed (std::exception &e)
 
void set_teardown_failed ()
 
void set_teardown_failed (std::exception &e)
 
void add_test_method (TestMethodResult &&e)
 
bool is_success () const
 

Public Attributes

std::string test_case
 Name of the test case. More...
 
std::vector< TestMethodResultmethods
 Outcome of all the methods that have been run. More...
 
std::string fail_setup
 Set to a non-empty string if the setup method of the test case failed. More...
 
std::string fail_teardown
 Set to a non-empty string if the teardown method of the test case failed. More...
 
bool skipped = false
 Set to true if this test case has been skipped. More...
 

Detailed Description

Result of running a whole test case.

Constructor & Destructor Documentation

◆ TestCaseResult()

ept::tests::TestCaseResult::TestCaseResult ( const std::string &  test_case)
inline

Member Function Documentation

◆ add_test_method()

void ept::tests::TestCaseResult::add_test_method ( TestMethodResult &&  e)
inline

◆ is_success()

bool ept::tests::TestCaseResult::is_success ( ) const
inline

◆ set_setup_failed() [1/2]

void ept::tests::TestCaseResult::set_setup_failed ( )
inline

◆ set_setup_failed() [2/2]

void ept::tests::TestCaseResult::set_setup_failed ( std::exception &  e)
inline

◆ set_teardown_failed() [1/2]

void ept::tests::TestCaseResult::set_teardown_failed ( )
inline

◆ set_teardown_failed() [2/2]

void ept::tests::TestCaseResult::set_teardown_failed ( std::exception &  e)
inline

Member Data Documentation

◆ fail_setup

std::string ept::tests::TestCaseResult::fail_setup

Set to a non-empty string if the setup method of the test case failed.

◆ fail_teardown

std::string ept::tests::TestCaseResult::fail_teardown

Set to a non-empty string if the teardown method of the test case failed.

◆ methods

std::vector<TestMethodResult> ept::tests::TestCaseResult::methods

Outcome of all the methods that have been run.

◆ skipped

bool ept::tests::TestCaseResult::skipped = false

Set to true if this test case has been skipped.

Referenced by ept::tests::TestCase::run_tests(), and ept::tests::SimpleTestController::test_case_end().

◆ test_case

std::string ept::tests::TestCaseResult::test_case

Name of the test case.


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