---
title: Configure Test Optimization
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Test Optimization in Datadog > Configure Test Optimization
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Configure Test Optimization

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

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

{% /callout %}

For information about configuration options for [Test Optimization](https://docs.datadoghq.com/continuous_integration/tests.md), choose your language:

- [dotnet](https://docs.datadoghq.com/tests/setup/dotnet.md)
- [java](https://docs.datadoghq.com/tests/setup/java.md)
- [javascript](https://docs.datadoghq.com/tests/setup/javascript.md)
- [python](https://docs.datadoghq.com/tests/setup/python.md)
- [ruby](https://docs.datadoghq.com/tests/setup/ruby.md)
- [swift](https://docs.datadoghq.com/tests/setup/swift.md)
- [go](https://docs.datadoghq.com/tests/setup/go.md)
- [junit_xml](https://docs.datadoghq.com/tests/setup/junit_xml.md)

If you use Bazel to run Go, Java, or Python tests, use the Datadog [Bazel rules for Test Optimization](https://docs.datadoghq.com/tests/setup/bazel.md).

If you run your tests in an environment with network restrictions, see the [Agent Network Traffic](https://docs.datadoghq.com/agent/configuration/network.md) or [Agentless Network Settings](https://docs.datadoghq.com/tests/network.md) guide for information on how to configure allowlisting.

If you run your tests in a container, see the [Tests in Containers](https://docs.datadoghq.com/tests/containers.md) guide for additional setup steps.

To have a supported Test Optimization library upload code coverage reports automatically, see [Upload reports automatically with Test Optimization](https://docs.datadoghq.com/code_coverage/setup.md#upload-reports-automatically-with-test-optimization).

## Data Access Control{% #data-access-control %}

You can restrict Test Optimization data at the repository level to the appropriate teams and roles in Datadog. This helps prevent sensitive information, such as test names or source paths, from crossing team boundaries.

To use Data Access Control, go to [Organization Settings > Data Access Control](https://app.datadoghq.com/organization-settings/data-access-controls) and create a Restricted Dataset scoped to Software Delivery and the repository you want to restrict. Grant access to the roles or teams that should see it.
