mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-11 17:06:54 +08:00
make fixtures and examples compatible with new UnityBegin method.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user