提交 0137f4a8 编写于 作者: J jsalling

Add option to print FAILED instead of FAIL during the summary

 For easier automation and searching for a test suite failure
上级 a00e879d
......@@ -1323,6 +1323,9 @@ int UnityEnd(void)
else
{
UnityPrintFail();
#ifdef UNITY_DIFFERENTIATE_FINAL_FAIL
UNITY_OUTPUT_CHAR('E'); UNITY_OUTPUT_CHAR('D');
#endif
}
UNITY_PRINT_EOL();
UNITY_OUTPUT_COMPLETE();
......
......@@ -48,6 +48,7 @@ void tearDown(void);
// Output
// - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
// - define UNITY_DIFFERENTIATE_FINAL_FAIL to print FAILED (vs. FAIL) at test end summary - for automated search for failure
// Optimization
// - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册