mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-25 10:13:12 +08:00
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:
@ -398,10 +398,10 @@ void UnityConcludeFixtureTest(void)
|
||||
{
|
||||
if (Unity.CurrentTestIgnored)
|
||||
{
|
||||
//if (UnityFixture.Verbose)
|
||||
//{
|
||||
if (UnityFixture.Verbose)
|
||||
{
|
||||
UNITY_PRINT_EOL();
|
||||
//}
|
||||
}
|
||||
Unity.TestIgnores++;
|
||||
}
|
||||
else if (!Unity.CurrentTestFailed)
|
||||
|
@ -277,6 +277,10 @@ TEST(UnityCommandOptions, UnknownCommandIsIgnored)
|
||||
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)
|
||||
RUN_TEST_CASE(UnityCommandOptions, MultipleOptions);
|
||||
RUN_TEST_CASE(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified);
|
||||
RUN_TEST_CASE(UnityCommandOptions, UnknownCommandIsIgnored);
|
||||
RUN_TEST_CASE(UnityCommandOptions, TestShouldBeIgnored);
|
||||
}
|
||||
|
||||
TEST_GROUP_RUNNER(LeakDetection)
|
||||
|
Reference in New Issue
Block a user