print log before displaying summary
This commit is contained in:
parent
3900a39205
commit
d58372991f
2
9unit.c
2
9unit.c
|
@ -61,11 +61,11 @@ run_tests(void (*tests)(TestState *))
|
||||||
TestState s;
|
TestState s;
|
||||||
init_TestState(&s);
|
init_TestState(&s);
|
||||||
(*tests)(&s);
|
(*tests)(&s);
|
||||||
|
print_log(&s);
|
||||||
printf("Tests run: %d\n", s.run);
|
printf("Tests run: %d\n", s.run);
|
||||||
printf("Tests passed: %d\n", s.passed);
|
printf("Tests passed: %d\n", s.passed);
|
||||||
printf("Tests failed: %d\n", s.failed);
|
printf("Tests failed: %d\n", s.failed);
|
||||||
printf("Tests postponed: %d\n", s.postponed);
|
printf("Tests postponed: %d\n", s.postponed);
|
||||||
print_log(&s);
|
|
||||||
clear_log(&s);
|
clear_log(&s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user