You can collect coverage data on your UNIX system and view it on Windows using PureCoverage for Windows.
By default, PureCoverage names data files created on UNIX as follows:
<program name>.<process ID>.<sequence number>.cfy
The <process ID> distinguishes between different runs of the program. The <sequence number> distinguishes between data files saved during a single run.
For information about saving UNIX coverage data in a PureCoverage data file (.cfy) file for viewing on Windows, refer to the PureCoverage for UNIX online Help.
To view UNIX data files and source files, you must make them available on your Windows system. Do this by copying files manually to your Windows system 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. PureCoverage records pathnames in the data files, but the UNIX pathnames cannot be resolved on Windows without intervention. To resolve the pathnames, do any of the following:
§ Browse to the source file in the Select Directory for <filename> dialog box.
§ Specify fully qualified source path substitutions in the Preferences dialog box or the Select Directory for <filename> dialog box. For example, if your UNIX source files are in the directory tree beginning /people/pat/current, and you consistently map /people/pat to drive F: on your Windows system, you can specify the substitution:
/people/pat|F:\
With this substitution, any UNIX pathname beginning with /people/pat is handled in Windows as if it began instead with F:\; for example, /people/pat/current becomes F:\current.
§ Use the PureCoverage substitute directive on UNIX to modify the source pathname that is recorded in coverage data files when they are generated. For information, see the PureCoverage for UNIX online help. You must use this approach if you have UNIX directories to distinguish that differ only with respect to case.
Note the following differences from typical PureCoverage behavior when you display a data file created on UNIX:
§ Modules displayed in the Coverage Browser window are .o files, rather than .exe or .dll files.
§ The Run Again command in the File menu is disabled.
§ The Executable Settings command in the Settings menu is disabled.
§ Settings you make in the PowerCov tab of the Default Settings dialog box do not apply to subsequent runs of the program on UNIX systems.
§ The Log tab of the Run Summary window displays UNIX product version and command line information.
(C) Copyright IBM Corporation 1993, 2010.