提交 7c270e05 编写于 作者: J jsalling

Test that details are printed in a direct TEST_FAIL call

上级 41645403
...@@ -3722,6 +3722,8 @@ void testNotEqualDoubleArraysLengthZero(void) ...@@ -3722,6 +3722,8 @@ void testNotEqualDoubleArraysLengthZero(void)
#endif #endif
} }
// ===================== THESE TEST WILL RUN IF YOUR CONFIG INCLUDES DETAIL SUPPORT ==================
void testThatDetailsCanBeHandleOneDetail(void) void testThatDetailsCanBeHandleOneDetail(void)
{ {
#ifdef UNITY_EXCLUDE_DETAILS #ifdef UNITY_EXCLUDE_DETAILS
...@@ -3735,6 +3737,19 @@ void testThatDetailsCanBeHandleOneDetail(void) ...@@ -3735,6 +3737,19 @@ void testThatDetailsCanBeHandleOneDetail(void)
#endif #endif
} }
void testThatDetailsCanHandleTestFail(void)
{
#ifdef UNITY_EXCLUDE_DETAILS
TEST_IGNORE();
#else
UNITY_SET_DETAILS("Detail1","Detail2");
EXPECT_ABORT_BEGIN
TEST_FAIL_MESSAGE("Should Fail And Say Detail1 and Detail2");
VERIFY_FAILS_END
#endif
}
void testThatDetailsCanBeHandleTwoDetails(void) void testThatDetailsCanBeHandleTwoDetails(void)
{ {
#ifdef UNITY_EXCLUDE_DETAILS #ifdef UNITY_EXCLUDE_DETAILS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册