Access environment from Global Set-Up and Tear-Down #4750
Unanswered
andrea-cassioli-maersk
asked this question in
Community Help
Replies: 2 comments
-
Ya, thx dik |
Beta Was this translation helpful? Give feedback.
0 replies
-
@i moved the dum stars for the 2nd time without having a plan like Dana all for me to be ms.honesty like her cunt mom |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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