提交 376480a4 编写于 作者: M Mark VanderVoord

make fixtures and examples compatible with new UnityBegin method.

上级 14b07433
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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)
......
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册