# Source: https://docs.datadoghq.com/code_coverage.md

---
title: Code Coverage
description: >-
  Upload coverage reports to Datadog, visualize coverage data for pull requests,
  and block merges based on configurable thresholds.
breadcrumbs: Docs > Code Coverage
---

# Code Coverage

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

{% callout %}
##### Join the Preview!

Code Coverage is in Preview. This product replaces Test Optimization's [code coverage](https://docs.datadoghq.com/tests/code_coverage) feature, which is being deprecated. Complete the form to request access for the new Code Coverage product.

[Request Access](http://datadoghq.com/product-preview/code-coverage/)
{% /callout %}

[Code Coverage](https://app.datadoghq.com/ci/code-coverage) lets you upload coverage reports to Datadog, visualize aggregated coverage data for pull requests, and block merges based on configurable coverage thresholds.

For setup instructions, see [Set up Code Coverage](https://docs.datadoghq.com/code_coverage/setup).

{% image
   source="https://datadog-docs.imgix.net/images/code_coverage/pr_details.350c4987583ad19fe7f4617d3998bfb3.png?auto=format"
   alt="" /%}

## Further reading{% #further-reading %}

- [Set up Code Coverage](https://docs.datadoghq.com/code_coverage/setup)
- [Configure Code Coverage](https://docs.datadoghq.com/code_coverage/configuration)
- [Learn what data is collected for Code Coverage](https://docs.datadoghq.com/code_coverage/data_collected)
- [Learn how Code Coverage supports large monorepos](https://docs.datadoghq.com/code_coverage/monorepo_support)