TEST_FAIL_COUNT

TEST_FAIL_COUNT is a read-only built-in integer indicating how many tests have failed so far in the current test run.

When a test fails, the TEST_FAIL_COUNT is increased before the Post-Function runs.

The Post-Function is treated as part of the test, so if the test or the Post-Function fails, TEST_FAIL_COUNT will increase by 1, but if both the test and its Post-Function fail, it will still only be incremented by 1.

Example

PRINT("Number of test failures: ", TEST_FAIL_COUNT, "\n");

See Also