> ## 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: Configurable Threshold Monitors with Live Preview

> You now have full control over how flaky tests are detected. Threshold monitors let you define exactly when a test should be flagged as flaky or broken, set the failure rate threshold, time window,…

**You now have full control over how flaky tests are detected.** Threshold monitors let you define
exactly when a test should be flagged as flaky or broken, set the failure rate threshold, time
window, minimum sample size, and which branches to watch. A live preview panel shows you exactly
which tests would be flagged under your current settings before you save, so you can tune detection
rules with confidence.

[Read the docs](/flaky-tests/detection/failure-rate-monitor#preview-panel) to learn more!
