Skip to content

Commit

Permalink
Fix vim-go integration and other editors
Browse files Browse the repository at this point in the history
Use Go 1.9 t.Helper() to remove testify from the output of the tests and
stop using `\r` to try to overwrite the output.

This means in Go 1.7 and Go 1.8 testify will appear as failing the test.
  • Loading branch information
Ernesto Jiménez authored and ernesto-jimenez committed Feb 2, 2018
1 parent 8824eb4 commit a726187
Show file tree
Hide file tree
Showing 12 changed files with 1,109 additions and 27 deletions.
135 changes: 135 additions & 0 deletions assert/assertion_format.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assert/assertion_format.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{.CommentFormat}}
func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool {
if h, ok := t.(tHelper); ok { h.Helper() }
return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}})
}
Loading

0 comments on commit a726187

Please sign in to comment.