From 5dca92377ddb091e1ada53851a35e8279aaeabb4 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 26 Jun 2017 15:38:46 +1000 Subject: [PATCH] test runner: Print test name when starting, print filter description Makes it easier to run tests manually. --- tools/unit-test-app/components/unity/unity_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/unit-test-app/components/unity/unity_platform.c b/tools/unit-test-app/components/unity/unity_platform.c index c5749f13f..03d79d26b 100644 --- a/tools/unit-test-app/components/unity/unity_platform.c +++ b/tools/unit-test-app/components/unity/unity_platform.c @@ -57,6 +57,7 @@ void unity_testcase_register(struct test_desc_t* desc) static void unity_run_single_test(const struct test_desc_t* test) { + printf("Running %s...\n", test->name); Unity.TestFile = test->file; Unity.CurrentDetail1 = test->desc; UnityDefaultTestRun(test->fn, test->name, test->line); @@ -72,7 +73,6 @@ static void unity_run_single_test_by_index(int index) { unity_run_single_test(test); } - } static void unity_run_single_test_by_index_parse(const char* filter, int index_max) @@ -133,6 +133,7 @@ void unity_run_tests_with_filter(const char* filter) { ++filter; } + printf("Running tests %smatching '%s'...\n", s_invert ? "NOT " : "", filter); for (const struct test_desc_t* test = s_unity_tests_first; test != NULL; test = test->next) {