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)
|
if (UnityFixture.Verbose)
|
||||||
{
|
{
|
||||||
UnityPrint(printableName);
|
UnityPrint(printableName);
|
||||||
|
UNITY_EXEC_TIME_START();
|
||||||
|
UNITY_EXEC_TIME_STOP();
|
||||||
|
UNITY_PRINT_EXEC_TIME();
|
||||||
UNITY_PRINT_EOL();
|
UNITY_PRINT_EOL();
|
||||||
}
|
}
|
||||||
else if (UnityFixture.Silent)
|
else if (UnityFixture.Silent)
|
||||||
@@ -286,6 +289,8 @@ void UnityConcludeFixtureTest(void)
|
|||||||
if (Unity.CurrentTestIgnored)
|
if (Unity.CurrentTestIgnored)
|
||||||
{
|
{
|
||||||
Unity.TestIgnores++;
|
Unity.TestIgnores++;
|
||||||
|
UNITY_EXEC_TIME_STOP();
|
||||||
|
UNITY_PRINT_EXEC_TIME();
|
||||||
UNITY_PRINT_EOL();
|
UNITY_PRINT_EOL();
|
||||||
}
|
}
|
||||||
else if (!Unity.CurrentTestFailed)
|
else if (!Unity.CurrentTestFailed)
|
||||||
@@ -302,6 +307,8 @@ void UnityConcludeFixtureTest(void)
|
|||||||
else /* Unity.CurrentTestFailed */
|
else /* Unity.CurrentTestFailed */
|
||||||
{
|
{
|
||||||
Unity.TestFailures++;
|
Unity.TestFailures++;
|
||||||
|
UNITY_EXEC_TIME_STOP();
|
||||||
|
UNITY_PRINT_EXEC_TIME();
|
||||||
UNITY_PRINT_EOL();
|
UNITY_PRINT_EOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user