Partager via


SET COVERAGE Command

Turns code coverage on or off, or specifies a text file to which code coverage information is directed.

SET COVERAGE TO [FileName [ADDITIVE]]

Parameters

  • TO FileName
    Specifies the name of a text file to which code coverage information is directed. Issue SET COVERAGE TO without a file name to close the text file.

    If the file you specify does not exist, Visual FoxPro automatically creates and opens it.

  • ADDITIVE
    Appends the code coverage information to the end of the text file specified with FileName. If you omit ADDITIVE, the code coverage information replaces the contents of the text file.

Remarks

You can use SET COVERAGE at design time and at runtime in Visual FoxPro 9.0. Coverage.app, the Coverage Profile application included with Visual FoxPro, cannot be included with your distributed runtime applications. See Distributable and Restricted Visual FoxPro Features and Files for more information about files and applications that can be included with your Visual FoxPro distributed applications.

For more information about code coverage options, see Coverage Dialog Box. For more information about the Visual FoxPro Coverage Profiler, see Coverage Profiler Application.

See Also

Tasks

How to: Log Code Coverage

Reference

_COVERAGE System Variable

SET EVENTTRACKING Command

SET Command Overview

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)