Skip to content

Commit

Permalink
fix (venom): remove fancy font for status (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Feb 5, 2018
1 parent a428201 commit 0646fd4
Show file tree
Hide file tree
Showing 32 changed files with 2,850 additions and 15 deletions.
81 changes: 71 additions & 10 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion process_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (v *Venom) readFiles(filesPath []string) (err error) {
}
ts.Total = len(ts.TestCases)

b := pb.New(nSteps).Prefix(rightPad(" "+ts.Package, " ", 47))
b := pb.New(nSteps).Prefix(rightPad("READING "+ts.Package, " ", 47))
b.ShowCounters = false
b.Output = v.LogOutput
if v.OutputDetails == DetailsLow {
Expand Down
7 changes: 5 additions & 2 deletions process_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"time"

"github.com/fatih/color"
"github.com/fsamin/go-dump"
log "github.com/sirupsen/logrus"
)
Expand All @@ -29,9 +30,11 @@ func (v *Venom) runTestSuite(ts *TestSuite) {

var o string
if ts.Failures > 0 || ts.Errors > 0 {
o = fmt.Sprintf("❌ %s", rightPad(ts.Package, " ", 47))
red := color.New(color.FgRed).SprintFunc()
o = fmt.Sprintf("%s %s", red("FAILURE"), rightPad(ts.Package, " ", 47))
} else {
o = fmt.Sprintf("✅ %s", rightPad(ts.Package, " ", 47))
green := color.New(color.FgGreen).SprintFunc()
o = fmt.Sprintf("%s %s", green("SUCCESS"), rightPad(ts.Package, " ", 47))
}
if v.OutputDetails == DetailsLow {
o += fmt.Sprintf("%s", elapsed)
Expand Down
5 changes: 5 additions & 0 deletions vendor/github.com/fatih/color/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/fatih/color/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

177 changes: 177 additions & 0 deletions vendor/github.com/fatih/color/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0646fd4

Please sign in to comment.