After running an instrumented application, it is possible that the
execution report (the .csexe
file) is not generated or cannot be
found in the expected folder.
In this case, the following actions are often helpful.
- The execution report is generated in the current working directory of the application. This directory may be different from the directory in which the executable resides. Check this directory.
- Make sure that the working directory of the instrumented application is writeable.
- The name of the execution report is not necessarily derived from
the file name of the program or DLL the coverage of which is
measured. It could also be derived from a program that runs
unit tests, or maybe still another file. In this case, try the most
recent file with the extension
.csexe
. The name itself is not relevant for an import. Only the content is checked.
If this does not help, it is possible to debug this issue by
generating a log file. In the following example, the log is written to
the file C:\tmp\coco.log
on a Windows system. For other platforms,
just change the file name.
- Add
--cs-verbose=api
and--cs-verbose-file=C:\tmp\coco.log
to your instrumentation parameters. - Completely rebuild the application and its dependencies.
- Create a folder
C:\tmp
and verify that it is writeable for all users. - Run your application. The file
C:\tmp\coco.log
will be generated with information about the location of the execution report or possible generation failures.