PythonCoverage¶
- MacroModule¶
genre
author
package
definition
keywords
Purpose¶
This module allows to control the measurement of Python code coverage.
Usage¶
First add required additional package/module exclusions. To measure coverage, press Start, execute the Python code to be measured, then press Stop.
Select an export format and a path to export to and press Export.
Details¶
The following exclusions are always added:
*/TestSupport/*
*/TestCenterAdvanced/*
*/MLABPythonTools/*
*/*.script*
*/*.def*
*@@scriptconsole*
*/PythonCoverage.py
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Start¶
- name: start, type: Trigger¶
Starts measurement of coverage.
Stop¶
- name: stop, type: Trigger¶
Stops measurement of coverage.
Erase¶
- name: erase, type: Trigger¶
Erase data collected so far.
Export¶
- name: export, type: Trigger¶
Export the collected data in the selected format.
Export Path¶
- name: exportPath, type: String¶
Path where the coverage HTML is exported to.
Coverage Exclusions¶
- name: additionalCoverageExclusions, type: String¶
Comma-separated exclusions for the Python coverage measurement
Coverage Inclusions¶
- name: coverageInclusions, type: String¶
Comma-separated inclusions for the Python coverage measurement. If empty, all files are included that are not excluded.