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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user