提交 81cf5eb6 编写于 作者: J jsalling

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
上级 1703bd1a
...@@ -398,10 +398,10 @@ void UnityConcludeFixtureTest(void) ...@@ -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)
......
...@@ -277,6 +277,10 @@ TEST(UnityCommandOptions, UnknownCommandIsIgnored) ...@@ -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!");
}
//------------------------------------------------------------ //------------------------------------------------------------
......
...@@ -32,6 +32,7 @@ TEST_GROUP_RUNNER(UnityCommandOptions) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册