Viewing UNIX coverage data on Windows

You can collect coverage data on your UNIX system and view it on Windows using Rational XDE or Rational PureCoverage for Windows.

Collecting Data

To collect coverage data for viewing on Windows, assign the value windows or both to the -view-file-format option.

With the option set to windows, PureCoverage saves coverage data to a .cfy file, which you can analyze using PureCoverage for Windows. With the option set to both, PureCoverage saves data to a .pcv file as well.

Merging .cfy files

PureCoverage for UNIX, by default, merges .pcv files, but does not merge the .cfy files that it creates. You can merge these files in Rational XDE or PureCoverage for Windows manually, or by using the ActiveMerge feature. ActiveMerge allows you to add a dataset to, or remove a dataset from, the merged dataset with a single click. Refer to the PureCoverage for Windows online help system for information about merging datasets.

 

Naming .cfy files

By default, PureCoverage names .cfy files %v.%p.%n.cfy. The pid number, %p, distinguishes between different runs of the program. The sequence number, %n, distinguishes between data files saved during a single run by multiple calls to the API function purecov_save_data(). Note that, If you assign a value of both to the -view-file-format option, data from multiple saves and multiple runs is saved in separate .cfy files, as usual, but as usual merged into a single .pcv file.

You can assign a name of your own choosing to a .cfy file using the -counts-file option.

Displaying .cfy files and source files on Windows

Before you can view UNIX coverage data on Windows, you must make your .cfy files and source files available. You can do this by copying files manually or by using a file system shared on UNIX and Windows.

To view annotated source, you must also make sure that PureCoverage for Windows can find your source files. This is a problem because the UNIX pathnames recorded in the .cfy files cannot be resolved on Windows. To help PureCoverage find the source files, you can do any of the following: