have testrunner summarize failed tests so they are easier to find
This commit is contained in:
1 parent
55051f0194
commit
cc7b781bb3
1 file changed
+3
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user