You can run native (unmanaged) Visual C++ from the command line as follows:
coverage [<PureCoverage options>] <exename or modulename> [<arguments to exename>]
Where |
Represents |
[<PureCoverage options>] |
Options you can specify after the coverage command. For a list of options, click |
<exename or modulename> |
The program or module you want to instrument and run. Note: If you specify a module other than an executable, PureCoverage instruments the module but does not run it. |
[<arguments to exename>] |
Arguments to pass to the program. |
For example, you can type:
coverage /SaveData myapp.exe arg1 arg2
PureCoverage instruments and runs Myapp.exe with the specified arguments, arg1 and arg2, and saves the coverage data to a PureCoverage data file (.cfy) without displaying any coverage data windows.
Note:
§ To run programs from the command line, you must have the RationalPurifyPlus/common directory in your PATH environment variable.
(C) Copyright IBM Corporation 1993, 2010.