Permalink
Browse files

Merge pull request #3 from nutrun/master

Show test filenames in report
  • Loading branch information...
2 parents 0daf5c9 + 72f4d4d commit 301bb28883c775794ec197998b5e2df781895241 @joewalnes committed Oct 24, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 tinytest.h
View
@@ -98,14 +98,14 @@ bool tt_assert(const char* file, int line, const char* msg, const char* expressi
int tt_report(void)
{
if (tt_fails) {
- printf("%c%sFAILED%c%s (passed:%d, failed:%d, total:%d)\n",
+ printf("%c%sFAILED%c%s [%s] (passed:%d, failed:%d, total:%d)\n",
TT_COLOR_CODE, TT_COLOR_RED, TT_COLOR_CODE, TT_COLOR_RESET,
- tt_passes, tt_fails, tt_passes + tt_fails);
+ tt_current_file, tt_passes, tt_fails, tt_passes + tt_fails);
return -1;
} else {
- printf("%c%sPASSED%c%s (total:%d)\n",
+ printf("%c%sPASSED%c%s [%s] (total:%d)\n",
TT_COLOR_CODE, TT_COLOR_GREEN, TT_COLOR_CODE, TT_COLOR_RESET,
- tt_passes);
+ tt_current_file, tt_passes);
return 0;
}
}

0 comments on commit 301bb28

Please sign in to comment.