CodeCoveragePath

  

DEVELOPER

 

 

Purpose

.CodeCoveragePath allows you to override the directory that the file containing the captured code coverage data is saved to. The default is "codecoverage" under the virtual machine's home directory. See the PROIV Dashboard for the "home directory". It is assumed that the directory has the correct permissions for PROIV to be able to save files into it.  

Object Type

Session

Syntax

Session.CodeCoveragePath("C:\Users\Me\ProIVCodeCoverage")

Remarks

The directory path can be set before code coverage capture is enabled.

Changing the directory path while code coverage capture is enabled will cause any existing captured data to be saved to the old directory. The code coverage data is reset. New captured data will be saved in the new directory. The filename will have an updated timestamp.


Example

To set the directory path:

Session.CodeCoveragePath("/mount/testuser/codecoverage")

Session.CodeCoveragePath("D:\Users\testuser\Testing\20230125\CodeCoverageData")

Comment on this topic

Topic ID: 510184