id/1 | Return a unique id for this CTH. |
init/2 | Always called before any other callback function. |
on_tc_fail/3 | Called after post_init_per_suite, post_end_per_suite, post_init_per_group, post_end_per_group and post_end_per_testcase if the suite, group or test case failed. |
on_tc_skip/3 | Called when a test case is skipped by either user action or due to an init function failing. |
on_tc_skip/4 | Called when a test case is skipped by either user action or due to an init function failing. |
post_end_per_group/4 | Called after each end_per_group. |
post_end_per_suite/4 | Called after end_per_suite. |
post_end_per_testcase/4 | Called after each test case. |
post_init_per_group/4 | Called after each init_per_group. |
post_init_per_suite/4 | Called after init_per_suite. |
pre_end_per_group/3 | Called after each end_per_group. |
pre_end_per_suite/3 | Called before end_per_suite. |
pre_init_per_group/3 | Called before each init_per_group. |
pre_init_per_suite/3 | Called before init_per_suite is called. |
pre_init_per_testcase/3 | Called before each test case. |
terminate/1 | Called when the scope of the CTH is done. |
id(Opts) -> any()
Return a unique id for this CTH.
init(Id, Opts) -> any()
Always called before any other callback function. Use this to initiate any common state.
on_tc_fail(TC, Reason, State) -> any()
Called after post_init_per_suite, post_end_per_suite, post_init_per_group, post_end_per_group and post_end_per_testcase if the suite, group or test case failed.
on_tc_skip(TC, Reason, State) -> any()
Called when a test case is skipped by either user action or due to an init function failing. (Pre-19.3)
on_tc_skip(Suite, TC, Reason, State) -> any()
Called when a test case is skipped by either user action or due to an init function failing. (>= 19.3)
post_end_per_group(Group, Config, Return, State) -> any()
Called after each end_per_group.
post_end_per_suite(Suite, Config, Return, State) -> any()
Called after end_per_suite.
post_end_per_testcase(TC, Config, Error, State) -> any()
Called after each test case.
post_init_per_group(Group, Config, Return, State) -> any()
Called after each init_per_group.
post_init_per_suite(Suite, Config, Return, State) -> any()
Called after init_per_suite.
pre_end_per_group(Group, Config, State) -> any()
Called after each end_per_group.
pre_end_per_suite(Suite, Config, State) -> any()
Called before end_per_suite.
pre_init_per_group(Group, Config, State) -> any()
Called before each init_per_group.
pre_init_per_suite(Suite, Config, State) -> any()
Called before init_per_suite is called.
pre_init_per_testcase(TC, Config, State) -> any()
Called before each test case.
terminate(State) -> any()
Called when the scope of the CTH is done
Generated by EDoc