make fixtures and examples compatible with new UnityBegin method.

This commit is contained in:
Mark VanderVoord
2014-08-16 10:51:25 -04:00
parent 14b074336b
commit 376480a4d9
6 changed files with 23 additions and 27 deletions

View File

@ -33,8 +33,7 @@ void resetTest()
int main(void)
{
Unity.TestFile = "test/TestProductionCode2.c";
UnityBegin();
UnityBegin("test/TestProductionCode2.c");
// RUN_TEST calls runTest
RUN_TEST(test_IgnoredTest, 13);

View File

@ -35,8 +35,7 @@ void resetTest()
int main(void)
{
Unity.TestFile = "test/TestProductionCode.c";
UnityBegin();
UnityBegin("test/TestProductionCode.c");
// RUN_TEST calls runTest
RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode, 20);

View File

@ -33,8 +33,7 @@ void resetTest()
int main(void)
{
Unity.TestFile = "test/TestProductionCode2.c";
UnityBegin();
UnityBegin("test/TestProductionCode2.c");
// RUN_TEST calls runTest
RUN_TEST(test_IgnoredTest, 13);

View File

@ -35,8 +35,7 @@ void resetTest()
int main(void)
{
Unity.TestFile = "test/TestProductionCode.c";
UnityBegin();
UnityBegin("test/TestProductionCode.c");
// RUN_TEST calls runTest
RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode, 20);

View File

@ -16,7 +16,7 @@ module RakefileHelpers
def load_configuration(config_file)
unless ($configured)
$cfg_file = HERE+"../../targets/#{config_file}" unless (config_file =~ /[\\|\/]/)
$cfg_file = HERE+"../../test/targets/#{config_file}" unless (config_file =~ /[\\|\/]/)
$cfg = YAML.load(File.read($cfg_file))
$colour_output = false unless $cfg['colour']
$configured = true if (config_file != DEFAULT_CONFIG_FILE)

View File

@ -38,7 +38,7 @@ int UnityMain(int argc, char* argv[], void (*runAllTests)(void))
for (r = 0; r < UnityFixture.RepeatCount; r++)
{
announceTestRun(r);
UnityBegin();
UnityBegin(argv[0]);
runAllTests();
UNITY_OUTPUT_CHAR('\n');
UnityEnd();