Do not add EOL after every ignored test using Unity Fixture

Revert part of commit 77af37ad, code looked like a temporary change
 The behavior is back to the original, printing "....!..." in quiet mode
 Added an ignored test to Fixture for visual inspection
This commit is contained in:
jsalling
2015-12-15 17:32:55 -06:00
parent 1703bd1a5e
commit 81cf5eb626
3 changed files with 8 additions and 3 deletions

View File

@ -398,10 +398,10 @@ void UnityConcludeFixtureTest(void)
{ {
if (Unity.CurrentTestIgnored) if (Unity.CurrentTestIgnored)
{ {
//if (UnityFixture.Verbose) if (UnityFixture.Verbose)
//{ {
UNITY_PRINT_EOL(); UNITY_PRINT_EOL();
//} }
Unity.TestIgnores++; Unity.TestIgnores++;
} }
else if (!Unity.CurrentTestFailed) else if (!Unity.CurrentTestFailed)

View File

@ -277,6 +277,10 @@ TEST(UnityCommandOptions, UnknownCommandIsIgnored)
TEST_ASSERT_EQUAL(98, UnityFixture.RepeatCount); TEST_ASSERT_EQUAL(98, UnityFixture.RepeatCount);
} }
IGNORE_TEST(UnityCommandOptions, TestShouldBeIgnored)
{
TEST_FAIL_MESSAGE("This test should not run!");
}
//------------------------------------------------------------ //------------------------------------------------------------

View File

@ -32,6 +32,7 @@ TEST_GROUP_RUNNER(UnityCommandOptions)
RUN_TEST_CASE(UnityCommandOptions, MultipleOptions); RUN_TEST_CASE(UnityCommandOptions, MultipleOptions);
RUN_TEST_CASE(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified); RUN_TEST_CASE(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified);
RUN_TEST_CASE(UnityCommandOptions, UnknownCommandIsIgnored); RUN_TEST_CASE(UnityCommandOptions, UnknownCommandIsIgnored);
RUN_TEST_CASE(UnityCommandOptions, TestShouldBeIgnored);
} }
TEST_GROUP_RUNNER(LeakDetection) TEST_GROUP_RUNNER(LeakDetection)