You can monitor native-code (unmanaged), p-code, or Visual Basic .NET managed programs from the command line as follows:
For native-code programs:
coverage [<PureCoverage options>] <exename or modulename> [<arguments to exename>]
For p-code or Visual Basic .NET programs:
coverage [<PureCoverage options>] /net <exename> [<arguments to exename>]
Where |
Represents |
[<PureCoverage options>] |
Options you can specify after the coverage command. For a list of options, click |
/net |
Required for Visual Basic p-code and Visual Basic .NET programs |
<exename or modulename> |
Any native-code program or module, or any p-code or managed code program. Note: If you specify a native-code module other than an executable, PureCoverage instruments the module but does not run it. |
[<arguments to exename>] |
Arguments to pass to program. |
For example, to monitor a native-code program, you can type:
coverage /SaveData native_vb_app.exe arg1 arg2
PureCoverage instruments and runs Native_vb_app.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.
To monitor a p-code or Visual Basic .NET managed code program, you can type:
coverage /SaveData /net pcode_app.exe arg1 arg2
PureCoverage collects coverage data for the program, using the specified arguments, arg1 and arg2, and saves the coverage data to a PureCoverage data file (.cfy) without displaying any coverage data windows.
Notes:
§ To run programs from the command line, you must have the RationalPurifyPlus/common directory in your PATH environment variable.
§ Line level coverage data is not available when you monitor a Visual Basic p-code program.
§ For mixed p-code and .NET programs, PureCoverage monitors only one type of code per run. By default, it monitors the type it encounters first. To override the default and force PureCoverage to monitor a specific type of code, use the cstart command with a switch to specify the language: /vb for p-code, /dotnet for .NET managed code. For example:
cstart -vb <exename> [<arguments to exename>]
(C) Copyright IBM Corporation 1993, 2010.