CodeCoverage

  

DEVELOPER

 

 

Purpose

.CodeCoverage allows you to enable / disable code coverage capture for the current session.
 

Object Type

Session

Syntax

Session.CodeCoverage = <boolean-expression>
Variable = Session.CodeCoverage

Remarks

Disabling the code coverage will cause the captured data to be saved to the specified file.

Attempting to enable code coverage when already enabled is ignored. Similarly attempting to disable when already disabled is ignored.

Disabling then enabling code coverage does not pause the code coverage. It will create two files whose names contain timestamps corresponding to when code coverage was enabled.


Example

To enable / disable code coverage:

Session.CodeCoverage = True

Session.CodeCoverage = False

Comment on this topic

Topic ID: 510181