diff options
Diffstat (limited to 'source/kit_test')
-rw-r--r-- | source/kit_test/test.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c index ebd2a31..a47185e 100644 --- a/source/kit_test/test.c +++ b/source/kit_test/test.c @@ -157,9 +157,9 @@ int kit_run_tests(int argc, char **argv) { quiet || printf("\n"); file = kit_tests_list.tests[i].test_file; no_color || print_color(blue); - quiet || printf("*"); + quiet || printf("* "); no_color || print_color(white); - quiet || printf(" %s\n", file + file_root); + quiet || printf("%s\n", file + file_root); } !carriage_return || no_color || print_color(yellow); @@ -216,7 +216,6 @@ int kit_run_tests(int argc, char **argv) { no_color || print_color(white); quiet || printf("\n%d of %d tests passed.\n", success_count, kit_tests_list.size); - quiet || printf("%d of %d assertions passed.\n\n", total_assertion_count - fail_assertion_count, total_assertion_count); @@ -231,6 +230,7 @@ int kit_run_tests(int argc, char **argv) { if (signum >= 0 && signum < sizeof signames / sizeof *signames && signames[signum] != NULL) { + no_color || print_color(light); quiet || printf("Signal \"%s\" (%d) for \"", signames[signum], signum); no_color || print_color(white); @@ -243,6 +243,7 @@ int kit_run_tests(int argc, char **argv) { no_color || print_color(light); quiet || printf("\"!.\n"); } else { + no_color || print_color(light); quiet || printf("Unknown signal (%d) for \"", signum); no_color || print_color(white); quiet || printf("%s", kit_tests_list.tests[i].test_name); @@ -257,6 +258,7 @@ int kit_run_tests(int argc, char **argv) { } if (kit_tests_list.tests[i].assertions > KIT_TEST_ASSERTIONS_LIMIT) { + no_color || print_color(light); quiet || printf("Too many assertions for \""); no_color || print_color(white); quiet || printf("%s", kit_tests_list.tests[i].test_name); @@ -270,6 +272,7 @@ int kit_run_tests(int argc, char **argv) { } else for (int j = 0; j < kit_tests_list.tests[i].assertions; j++) if (!kit_tests_list.tests[i].status[j]) { + no_color || print_color(light); quiet || printf("Assertion on line "); no_color || print_color(white); quiet || printf("%d", kit_tests_list.tests[i].line[j]); @@ -287,6 +290,7 @@ int kit_run_tests(int argc, char **argv) { } if (kit_tests_list.size > KIT_TESTS_SIZE_LIMIT) { + no_color || print_color(light); quiet || printf("Too many tests!\n\n"); status = 1; } |