From cc7b781bb34d6ca7463b7cd3cef98f932200573b Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Fri, 31 Jul 2015 12:12:33 +0100 Subject: [PATCH] have testrunner summarize failed tests so they are easier to find --- testing/runner/runner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/runner/runner.go b/testing/runner/runner.go index 5ee67f61..755d97d7 100644 --- a/testing/runner/runner.go +++ b/testing/runner/runner.go @@ -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) }