mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-19 09:39:56 +00:00
Test that details are printed in a direct TEST_FAIL call
This commit is contained in:
@@ -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)
|
|||||||
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user