19 #ifndef UTEST_DEFAULT_HANDLER_H 20 #define UTEST_DEFAULT_HANDLER_H 25 #include "utest/utest_types.h" 153 #define UTEST_DEFAULT_GREENTEA_TIMEOUT 10 //Seconds 154 #define UTEST_DEFAULT_HOST_TEST_NAME "default_auto" 203 #endif // UTEST_DEFAULT_HANDLER_H
void verbose_test_teardown_handler(const size_t passed, const size_t failed, const failure_t failure)
Prints the number of tests that passed and failed with a reason if provided.
void greentea_test_failure_handler(const failure_t failure)
Reports the failure for REASON_TEST_SETUP and REASON_TEST_TEARDOWN to greentea and then dies...
const handlers_t greentea_abort_handlers
The greentea default handlers that always abort on the first encountered failure. ...
utest::v1::status_t verbose_case_setup_handler(const Case *const source, const size_t index_of_case)
Prints the index and description of the case being run and continues.
utest::v1::status_t(* case_setup_handler_t)(const Case *const source, const size_t index_of_case)
Test case setup handler.
utest::v1::status_t verbose_case_teardown_handler(const Case *const source, const size_t passed, const size_t failed, const failure_t failure)
Prints the number of tests that passed and failed with a reason if provided within this case and cont...
static const struct utest::v1::@372 ignore_handler
Ignore handler hint.
utest::v1::status_t verbose_case_failure_handler(const Case *const source, const failure_t reason)
Prints the reason of the failure and continues, unless the teardown handler failed, for which it aborts.
utest::v1::status_t(* case_teardown_handler_t)(const Case *const source, const size_t passed, const size_t failed, const failure_t reason)
Test case teardown handler.
Contains the reason and location of the failure.
const handlers_t greentea_continue_handlers
The greentea default handlers that always continue on failure.
utest::v1::status_t greentea_test_setup_handler(const size_t number_of_cases)
Requests the start test case from greentea and continues.
utest::v1::status_t(* test_setup_handler_t)(const size_t number_of_cases)
Test setup handler.
const handlers_t selftest_handlers
The selftest default handlers that always abort on any assertion failure, otherwise continue...
void greentea_testcase_notification_handler(const char *testcase)
Notify greentea of testcase name.
void(* test_teardown_handler_t)(const size_t passed, const size_t failed, const failure_t failure)
Test teardown handler.
const handlers_t & default_handlers
The greentea aborting handlers are the default.
void(* test_failure_handler_t)(const failure_t reason)
Test failure handler.
static const struct utest::v1::@371 default_handler
Default handler hint.
utest::v1::status_t greentea_case_setup_handler(const Case *const source, const size_t index_of_case)
Registers the test case setup with greentea.
utest::v1::status_t verbose_test_setup_handler(const size_t number_of_cases)
Prints the number of tests to run and continues.
const handlers_t verbose_continue_handlers
The verbose default handlers that always continue on failure.
utest::v1::status_t greentea_case_teardown_handler(const Case *const source, const size_t passed, const size_t failed, const failure_t failure)
Registers the test case teardown with greentea.
void(* case_handler_t)(void)
Primitive test case handler.
utest::v1::status_t(* case_failure_handler_t)(const Case *const source, const failure_t reason)
Test case failure handler.
void verbose_test_failure_handler(const failure_t failure)
Prints the failure for REASON_TEST_SETUP and REASON_TEST_TEARDOWN and then dies.
utest::v1::status_t greentea_case_failure_abort_handler(const Case *const source, const failure_t reason)
Reports the failure to greentea and then aborts.
control_t(* case_call_count_handler_t)(const size_t call_count)
Test case handler (repeatable)
utest::v1::status_t greentea_case_failure_continue_handler(const Case *const source, const failure_t reason)
Reports the failure to greentea and then continues.
control_t(* case_control_handler_t)(void)
Complex test case handler.
void greentea_test_teardown_handler(const size_t passed, const size_t failed, const failure_t failure)
Reports the test results to greentea.