have testrunner summarize failed tests so they are easier to find

This commit is contained in:
Paul Bellamy committed 2015-07-31 12:12:33 +01:00
1 parent 55051f0194
commit cc7b781bb3
1 file changed
+3
+3
View File
@@ -178,6 +178,9 @@ func getTests(testNames []string) (tests, error) {
func summary(tests, failed tests) {
if len(failed) > 0 {
fmt.Printf("%s>>> Ran %d tests, %d failed%s\n", fail, len(tests), len(failed), reset)
for _, test := range failed {
fmt.Printf("%s>>> Fail %s%s\n", fail, test.name, reset)
}
} else {
fmt.Printf("%s>>> Ran %d tests, all succeeded%s\n", succ, len(tests), reset)
}