Tips for Using the Command Line (Coverage Monitoring)

Related Topics

 

§          Use PureCoverage and its command-line options with your test harness and scripts. Monitor your nightly build and then check the results the next morning.

§          Settings and preferences you set in the PureCoverage user interface are recorded as options in the configuration settings (.ini) files for PureCoverage and for your program, and are applied when you use PureCoverage from the command line.

§          Limit instrumentation to just a few classes or modules by using selective instrumentation. Use the /ClassInstrumentationType or the /SelectiveInstrumentation command line option.

§          Apply filters from the command line. Use the /FilterFiles option to specify the filters you want.

§          PureCoverage has command-line options for controlling the level of data collection. For example, specify the /CoverageLineMust option to collect data at line level.

§          Make your scripts run the instrumented version of your native-compiled program and collect coverage data for every run. To do this, specify the /replace option when you instrument. This option renames your program and replaces it with the instrumented version.

Note: If you are using Microsoft Windows 2000 or higher, the Windows File Protection feature (WFP) may cause problems when you use the /replace option. For a workaround to this problem, click images\shortcut.gif.

(C) Copyright IBM Corporation 1993, 2010.