# coverage

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/test/CoverageConfigurationApi.java" %} {% dynamic setvar version "8.1.0" %} {% dynamic setvar original_path "/rules/lib/fragments/coverage" %} {% include "_buttons.html" %} A configuration fragment representing the coverage configuration.

## Members

- output_generator

## output_generator

    Label coverage.output_generator

Returns the label pointed to by the `--coverage_output_generator` option if coverage collection is enabled, otherwise returns `None`. Can be accessed with `configuration_field`:

    attr.label(
        default = configuration_field(
            fragment = "coverage",
            name = "output_generator"
        )
    )

May return `None`.