mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-25 11:37:27 +00:00
Output execution time in fixture for failed and ignored tests
This commit is contained in:
@@ -124,6 +124,9 @@ void UnityIgnoreTest(const char* printableName, const char* group, const char* n
|
||||
if (UnityFixture.Verbose)
|
||||
{
|
||||
UnityPrint(printableName);
|
||||
UNITY_EXEC_TIME_START();
|
||||
UNITY_EXEC_TIME_STOP();
|
||||
UNITY_PRINT_EXEC_TIME();
|
||||
UNITY_PRINT_EOL();
|
||||
}
|
||||
else if (UnityFixture.Silent)
|
||||
@@ -286,6 +289,8 @@ void UnityConcludeFixtureTest(void)
|
||||
if (Unity.CurrentTestIgnored)
|
||||
{
|
||||
Unity.TestIgnores++;
|
||||
UNITY_EXEC_TIME_STOP();
|
||||
UNITY_PRINT_EXEC_TIME();
|
||||
UNITY_PRINT_EOL();
|
||||
}
|
||||
else if (!Unity.CurrentTestFailed)
|
||||
@@ -302,6 +307,8 @@ void UnityConcludeFixtureTest(void)
|
||||
else /* Unity.CurrentTestFailed */
|
||||
{
|
||||
Unity.TestFailures++;
|
||||
UNITY_EXEC_TIME_STOP();
|
||||
UNITY_PRINT_EXEC_TIME();
|
||||
UNITY_PRINT_EOL();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user