improved final test output
This commit is contained in:
parent
4c4fba7609
commit
d510a130b5
8
test.go
8
test.go
@ -71,7 +71,13 @@ func test(redirects []Redirect) error { //TBD: implement
|
|||||||
}
|
}
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
fmt.Printf("\ndone tests.\n---------------------------------------------\nSummary:\n\n%s", summaryOutput)
|
fmt.Printf("\ndone tests.\n---------------------------------------------\n")
|
||||||
|
|
||||||
|
if len(summaryOutput) > 0 {
|
||||||
|
fmt.Printf("Summary:\n\n%s", summaryOutput)
|
||||||
|
} else {
|
||||||
|
fmt.Println("All redirect tests succeeded.")
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user