Skip to content

Commit

Permalink
Improve formatting of failes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Oct 20, 2018
1 parent 135f840 commit 9254ae0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"log"
"os"
"sort"
"strings"

"github.com/mfridman/tparse/parse"
"github.com/olekukonko/tablewriter"
Expand Down Expand Up @@ -80,7 +81,9 @@ func main() {
continue
}

fmt.Printf("%s\n", p.Summary.Package)
s := fmt.Sprintf("PACKAGE: %s", p.Summary.Package)
n := make([]string, len(s)+1)
fmt.Printf("%s\n%s\n", s, strings.Join(n, "-"))

for _, t := range failed {
t.PrintFail()
Expand Down

0 comments on commit 9254ae0

Please sign in to comment.