What is the correct way to report an error from an Environment teardown? #4522
Unanswered
peakschris
asked this question in
Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the issue
We have an Environment teardown that is reporting an error and we need to know what the correct approach is to handle it. Our current code throws an exception and this results in no test log emitted for any of the test cases which ran correctly. Calling FAIL() inside the teardown function has the same result. We would like for the test log to be created, but for some global failure to be reported in it. We would prefer not to hide the error completely.
Please would you advise?
Steps to reproduce the problem
add throw to Environment TearDown() or call to FAIL()
What version of GoogleTest are you using?
na
What operating system and version are you using?
Windows
What compiler and version are you using?
msvc 16
What build system are you using?
bazel 6.0.0
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions