> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-30012.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# coverage

A configuration fragment representing the coverage configuration.

## Members

* [output\_generator](#output_generator)

## output\_generator

```
Label coverage.output_generator
```

Returns the label pointed to by the [`--coverage_output_generator`](https://bazel.build/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`.
