1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-26 18:01:35 +01:00

Made unity_fixture IGNORE_TEST() respect the -v verbose flag.

More details here: http://forums.pragprog.com/forums/123/topics/10126
This commit is contained in:
Dennis Lambe Jr
2012-12-21 16:07:49 -05:00
parent e21881c53f
commit 47bf32edd6
3 changed files with 11 additions and 5 deletions

View File

@@ -112,11 +112,14 @@ void UnityTestRunner(unityfunction* setup,
}
}
void UnityIgnoreTest()
void UnityIgnoreTest(const char * printableName)
{
Unity.NumberOfTests++;
Unity.CurrentTestIgnored = 1;
UNITY_OUTPUT_CHAR('!');
if (!UnityFixture.Verbose)
UNITY_OUTPUT_CHAR('!');
else
UnityPrint(printableName);
UnityConcludeFixtureTest();
}
@@ -357,6 +360,10 @@ void UnityConcludeFixtureTest()
{
if (Unity.CurrentTestIgnored)
{
if (UnityFixture.Verbose)
{
UNITY_OUTPUT_CHAR('\n');
}
Unity.TestIgnores++;
}
else if (!Unity.CurrentTestFailed)
@@ -375,4 +382,3 @@ void UnityConcludeFixtureTest()
Unity.CurrentTestFailed = 0;
Unity.CurrentTestIgnored = 0;
}