| --- | |
| title: 'coverage' | |
| --- | |
| A configuration fragment representing the coverage configuration. | |
| ## Members | |
| * [output_generator](#output_generator) | |
| ## output_generator {#output_generator} | |
| ``` | |
| Label coverage.output_generator | |
| ``` | |
| Returns the label pointed to by the [`--coverage_output_generator`](https://bazel.build/versions/9.2.0/reference/command-line-reference#flag--coverage_output_generator) option if coverage collection is enabled, otherwise returns `None`. Can be accessed with [`configuration_field`](../globals/bzl#configuration_field): | |
| ``` | |
| attr.label( | |
| default = configuration_field( | |
| fragment = "coverage", | |
| name = "output_generator" | |
| ) | |
| ) | |
| ``` | |
| May return `None`. |