This project is read-only.

Coverage report for multiple arguments

Dec 5, 2016 at 9:25 AM
I am trying to get coverage for .exe which takes multiple arguments.
I am using following command:
OpenCppCoverage.exe --modules modules\ MyProgram.exe arg1 arg2 arg3
but I am getting following error: [error] Your program stop with error code: -1

In one of the discussions, It was mentioned to use "--" before .exe and argument to it.
but it is not working.
Please Help..
Thank You
Dec 30, 2016 at 8:04 AM

Sorry, I did not notice your issue and not received an email notification about it.

The following line should work for you:
OpenCppCoverage --modules modules\ -- MyProgram.exe arg1 arg2
Note: If your path (or args) contains a space, you must use double quote: "C:\Dev\My Folder with space\MyProgram.exe".
Release build is not yet supported in OpenCppCoverage 0.9.3.

Please let me know if it solve your problem. If not, can you provide more log?

Marked as answer by OpenCppCoverage on 2/26/2017 at 4:27 AM