Unity Test Cases

Hello everybody,

I am working on an embedded project and I’m just getting into learning about unit tests, I have written some before and they appear to detect that the case fails, however, the overall test is considered as passed. I am working on a NUCLEO-F722ZE and below is an example of the code I am running:

void testSimpleFailure(void) {
    TEST_FAIL_MESSAGE("This test should fail");
}

int main() {
    UNITY_BEGIN();
    RUN_TEST(testSimpleFailure);
    return UNITY_END();
}

and here is an example of the output:

.\main.cpp:108:testSimpleFailure:FAIL: This test should fail
.\main.cpp:113:testSimpleFailure:PASS

-----------------------
1 Tests 0 Failures 0 Ignored 
OK

The output does not seem to quite align with what I am expecting. Any advice is appreciated.

Thanks in advanced.