When you save data from the command line, PureCoverage collects and saves code coverage data without displaying any coverage data windows.
To save data to a PureCoverage data file (.cfy), use the /SaveData command-line option. For example:
coverage /SaveData=myapp1.cfy myapp.exe
By default, PureCoverage saves data in <exename>.cfy.
To save data to an ASCII text file (.txt), use the /SaveTextData command-line option. For example:
coverage /SaveTextData=myapp1.txt myapp.exe
By default, PureCoverage saves text data in <exename>.txt.
Notes:
§ When you save data to a .cfy file, PureCoverage saves any settings in effect. When you open a .cfy file, PureCoverage reapplies the settings. If you save data to a .cfy file, you can later view the data in PureCoverage's windows and compare the results from one run with the results of subsequent runs.
§ When you save data to a .txt file, PureCoverage saves the data and details about the run in tab-delimited format. Save the data to a .txt file to use with test harnesses, scripts, or to import the file into a spreadsheet program, such as Microsoft Excel.
§ Using the commands above, you can save data for one run at a time. To save composite data, use the /SaveMergeData and /SaveMergeTextData commands.
§ You can use the /SaveData and /SaveTextData commands together to generate both a PureCoverage data file and an ASCII text file. This is useful when you want a .cfy file to analyze using the PureCoverage user interface and a text file that a script can parse.
§ The /SaveData and /SaveTextData command options should not be used in the PureCoverage user interface.
(C) Copyright IBM Corporation 1993, 2010.