This project is read-only.

Passing arguments with paramters

Feb 24, 2016 at 12:44 PM
hi,
I want to invoke a test application which takes arguments
eg
MyTestApp.exe -root C:\myroot -config C:\myconfig.xml

When I try to pass the parameters as arguments,
eg
OpenCppCoverage.exe MyTestApp.exe --arg1 root
c:\myroot --arg2 cfg C:\myconfig.xml
I get an error from calling myTestApp.exe that root is not being passed in.
I have tried various combinations of "" around the parameters and passing each parameter as an individual argument but I can't seem to find a magic incantation that works.

Is this type of argument passing to a calling application supported by OpenCppCoverage?

Apologies if I am missing the obvious here.
Regards,
ED
Feb 24, 2016 at 6:03 PM
Hello,

You should add "--" just before the executable name.
OpenCppCoverage --sources YourFilter -- MyTestApp.exe -root C:\myroot -config C:\myconfig.xml 
Hope that help,

OpenCppCoverage
Marked as answer by OpenCppCoverage on 3/6/2016 at 2:38 AM