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

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

Member Function Documentation

void ept::tests::TestCaseResult::add_test_method ( TestMethodResult &&  e)
inline
bool ept::tests::TestCaseResult::is_success ( ) const
inline
void ept::tests::TestCaseResult::set_setup_failed ( )
inline
void ept::tests::TestCaseResult::set_setup_failed ( std::exception &  e)
inline
void ept::tests::TestCaseResult::set_teardown_failed ( )
inline
void ept::tests::TestCaseResult::set_teardown_failed ( std::exception &  e)
inline

Member Data Documentation

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

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

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

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

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

Outcome of all the methods that have been run.

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().

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

Name of the test case.


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