Macro

SET_TEST_ITERATIONS

Set number of test iterations.

Since v1.0
#define SET_TEST_ITERATIONS(
TEST_NAME, COUNT)

Parameters 🔗

TEST_NAME in

Name of the test case.

COUNT in

Number of iterations.

Discussion 🔗

Sets the number of test iterations for TEST_NAME to COUNT iterations. This function-like macro can be involved multiple times. The value of COUNT set by earlier calls will be ignored (only the latest is retained).

This function-like macro must be invoked within the SUITE_SETUP fixture. Invoking it anywhere else will terminate the test runner with an error.

See Dynamic Parameterized Tests for a code example.