Access environment from Global Set-Up and Tear-Down #4750
Unanswered
andrea-cassioli-maersk
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
-
Hi there,
I am considering using a global Set-Up and Tear-Down to read data from files that needs to be used in several unit tests. Up to now I use static data structures a bit scattered around, and I see that a global environment could be beneficial to consolidate the data and logic.
From https://google.github.io/googletest/advanced.html#global-set-up-and-tear-down I cannot figure out how an environment can be accessed from a unit test. No example seems to cover this functionality.
Could anyone give me some hint?
Beta Was this translation helpful? Give feedback.
All reactions