-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display file log when test fails. #2801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🗞️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the fact that we use go-check
, wouldn't it make more sense to do that in a TearDown
or TearDownSuite
method for the suite(s) ? It would remove some duplication and would help not forget to add it in new tests.
(if using testing
instead of go-check
, I think it would be best in TestMain
😛)
@vdemeester I already tested that:
Edit: this concern only the console output but it's not a problem for the log file |
integration/integration_test.go
Outdated
@@ -19,8 +19,8 @@ import ( | |||
checker "github.com/vdemeester/shakers" | |||
) | |||
|
|||
var integration = flag.Bool("integration", false, "run integration tests") | |||
var container = flag.Bool("container", false, "run container integration tests") | |||
var integration = flag.Bool("integration", true, "run integration tests") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change to false
integration/integration_test.go
Outdated
var integration = flag.Bool("integration", false, "run integration tests") | ||
var container = flag.Bool("container", false, "run container integration tests") | ||
var integration = flag.Bool("integration", true, "run integration tests") | ||
var container = flag.Bool("container", true, "run container integration tests") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
7367c18
to
ecf5caa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
What does this PR do?
Display file log when test fails.
Clean some test methods.
Motivation
Have more information when tests fails.
More