> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Flaky Tests: Quarantining

> We’re excited to provide a new way for you to mitigate the negative impact of flaky tests in your repo through quarantining.

We’re excited to provide a new way for you to mitigate the negative impact of flaky tests in your
repo through **quarantining**. 

Quarantining lets you isolate failures for known flaky tests so they don't fail your CI jobs while
still continuing to run them. It looks for known flaky tests and determines which tests should be
isolated at runtime, avoiding the code changes usually required to disable flaky tests.

Running flaky tests without disabling them lets you validate your fixes by continuously monitoring
their results. This is especially important because
[most attempted fixes for flaky tests don’t reduce the test’s flakiness](https://dl.acm.org/doi/abs/10.1145/3377811.3381749).

### Enabling Quarantining

We’re currently onboarding organizations to try quarantining manually. This is because quarantining
can drastically impact the results of your CI jobs. We want to help you validate quarantining
results and educate your team on its behavior during onboarding. To try Quarantining,
[reach out to us on Slack](https://slack.trunk.io/).

### Quarantining Features

<img src="https://mintcdn.com/trunk-4cab4936/Q0FYmvzYiNeEZWhS/assets/changelog/flaky-tests-quarantining-xnesjq.png?fit=max&auto=format&n=Q0FYmvzYiNeEZWhS&q=85&s=4d25fa03cd3baa9cc93ad27f23949e4d" alt="" width="5600" height="1004" data-path="assets/changelog/flaky-tests-quarantining-xnesjq.png" />

**Key Impact Metrics:** You can see the impact of quarantining on your repo. Understand how many CI
jobs with flaky failures were rescued by quarantining and how many engineering hours were saved.

<img src="https://mintcdn.com/trunk-4cab4936/Q0FYmvzYiNeEZWhS/assets/changelog/flaky-tests-quarantining-h4x866.png?fit=max&auto=format&n=Q0FYmvzYiNeEZWhS&q=85&s=5d96d369c1437e8a39726cc62176759f" alt="" width="5600" height="2752" data-path="assets/changelog/flaky-tests-quarantining-h4x866.png" />

**Keep track of quarantined tests**: You can continue to monitor the results of quarantined flaky
tests through the PR Tests Summaries generated by Trunk. You can filter failures by quarantined runs
and see the failure reasons at a glance.

<img src="https://mintcdn.com/trunk-4cab4936/Q0FYmvzYiNeEZWhS/assets/changelog/flaky-tests-quarantining-c4iv0t.png?fit=max&auto=format&n=Q0FYmvzYiNeEZWhS&q=85&s=f2836ea8fd740437d15f84bb6228b569" alt="" width="5600" height="2624" data-path="assets/changelog/flaky-tests-quarantining-c4iv0t.png" />

**Per test overrides:** You can override quarantining for individual tests in your repo to always
quarantine or never quarantine. This helps you handle edge cases such as tests that should never
break or tests that are flaky/broken due to reasons outside your team’s control, like external APIs
being down.

<img src="https://mintcdn.com/trunk-4cab4936/Q0FYmvzYiNeEZWhS/assets/changelog/flaky-tests-quarantining-ibg5zb.png?fit=max&auto=format&n=Q0FYmvzYiNeEZWhS&q=85&s=f755da6f6e9d33dc36ca3c9339dd4167" alt="" width="5600" height="2824" data-path="assets/changelog/flaky-tests-quarantining-ibg5zb.png" />

**Detailed audit trails**: You can see the audit trail of quarantine setting changes in both the
test’s status history and an overall audit trail in the settings.

Learn more in the [Quarantining documentation](https://docs.trunk.io/flaky-tests/quarantining).
