How to use the arguments passed to the command line in test suites/ test cases #4448
Unanswered
chetanpandey1266
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 folks,
I am writing some tests using google test and I want to pass some command line arguments to these tests and use them in test suites / test cases. I found a stackoverflow answer for doing so : https://stackoverflow.com/questions/4818785/how-to-pass-parameters-to-the-gtest/4820180#4820180
But here they are suggesting to use global variables to access the command line arguments but I don't want to use global variables so is there any other way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions