KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I’m using Google Test to test my C++ project. Some cases, however, require access to argc and argv to load the required data. In the main() method, when initializing, argc and argv are passed to the constructor of testing. testing::InitGoogleTest(&argc, argv); How can I access them later in a test? TEST(SomeClass, myTest) { // Here I would need to have access to argc and argv }
Tags (comma-separated)
Save Edits
Cancel