Skip to content

Commit

Permalink
add actual output to failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Dec 7, 2021
1 parent f8f8806 commit 1c76a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a/go.mod h1:pHhQN
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/manifoldco/promptui v0.8.0 h1:R95mMF+McvXZQ7j1g8ucVZE1gLP3Sv6j9vlF9kyRqQo=
github.com/manifoldco/promptui v0.8.0/go.mod h1:n4zTdgP0vr0S3w7/O/g98U+e0gwLScEXGwov2nIKuGQ=
github.com/mantil-io/mantil.go v0.1.3-0.20211125124945-bd8269e44ff7 h1:w0mBTBqcqyA4KhfmaR+KmlBUU7lDvMDeEafqNub7bn8=
github.com/mantil-io/mantil.go v0.1.3-0.20211125124945-bd8269e44ff7/go.mod h1:cRTxZIbJ86YO4lrWrjGzUziVv7Mmi/khpFtckWz1498=
github.com/mantil-io/mantil.go v0.1.7 h1:X3rt3gNB56Nxnx/HEEgUPx1I87zHdlldZxJThiiPqF4=
github.com/mantil-io/mantil.go v0.1.7/go.mod h1:iXF1rhcmSHb8pTj3b2uaySxHhBoikVpo/Zifa6DuwKE=
github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=
Expand Down
4 changes: 2 additions & 2 deletions kit/clitest/clitest.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (e *Expect) Success() *Expect {
if e.exitCode == math.MinInt {
e.t.Errorf("[%s] error %s", e.cmdStr, e.runError)
} else {
e.t.Errorf("[%s] should have zero exit code, acutal %d", e.cmdStr, e.exitCode)
e.t.Errorf("[%s] should have zero exit code, actual %d", e.cmdStr, e.exitCode)
}
}
return e
Expand Down Expand Up @@ -336,7 +336,7 @@ func (e *Expect) Stderr() *Expect {
func (e *Expect) Contains(str string) *Expect {
e.t.Helper()
if !strings.Contains(e.out, str) {
e.t.Errorf("[%s] %s should contain %s", e.cmdStr, e.outType, str)
e.t.Errorf("[%s] %s should contain %s, actual output: %s", e.cmdStr, e.outType, str, e.out)
}
return e
}
Expand Down

0 comments on commit 1c76a83

Please sign in to comment.