mardi 8 décembre 2015

Passing command line arguments to gtest test runner in VS2015

My setup is Visual Studio 2015 with the gtest test runner

http://ift.tt/1LWgsdF

Everything works fine. But now I want to pass command line arguments to

int main(int argc, char **argv) {..}

When debugging I can pass them with Properties->Debugging->Command Argument. That works fine.

I can run the test with Test->Run->Selected Test but how can I pass the command line arguments to the test? It's not taking over the debugging Command Arguments.

Aucun commentaire:

Enregistrer un commentaire