libept
|
Result of running a test method. More...
#include <tests.h>
Public Member Functions | |
TestMethodResult (const std::string &test_case, const std::string &test_method) | |
void | set_failed (TestFailed &e) |
void | set_exception (std::exception &e) |
void | set_unknown_exception () |
void | set_setup_exception (std::exception &e) |
void | set_teardown_exception (std::exception &e) |
bool | is_success () const |
Public Attributes | |
std::string | test_case |
Name of the test case. More... | |
std::string | test_method |
Name of the test method. More... | |
std::string | error_message |
If non-empty, the test failed with this error. More... | |
TestStack | error_stack |
Stack frame of where the error happened. More... | |
std::string | exception_typeid |
If non-empty, the test raised an exception and this is its type ID. More... | |
bool | skipped = false |
True if the test has been skipped. More... | |
Result of running a test method.
|
inline |
|
inline |
Referenced by ept::tests::SimpleTestController::test_method_end().
|
inline |
Referenced by ept::tests::TestCase::run_test().
|
inline |
References ept::tests::TestFailed::stack, and ept::tests::TestFailed::what().
Referenced by ept::tests::TestCase::run_test().
|
inline |
Referenced by ept::tests::TestCase::run_test().
|
inline |
Referenced by ept::tests::TestCase::run_test().
|
inline |
Referenced by ept::tests::TestCase::run_test().
std::string ept::tests::TestMethodResult::error_message |
If non-empty, the test failed with this error.
TestStack ept::tests::TestMethodResult::error_stack |
Stack frame of where the error happened.
std::string ept::tests::TestMethodResult::exception_typeid |
If non-empty, the test raised an exception and this is its type ID.
bool ept::tests::TestMethodResult::skipped = false |
True if the test has been skipped.
Referenced by ept::tests::TestCase::run_test(), and ept::tests::SimpleTestController::test_method_end().
std::string ept::tests::TestMethodResult::test_case |
Name of the test case.
Referenced by ept::tests::SimpleTestController::test_method_begin().
std::string ept::tests::TestMethodResult::test_method |
Name of the test method.