# Flaky Tests

- [Overview](https://docs.trunk.io/flaky-tests/overview.md): Detect, quarantine, and eliminates flaky tests from your codebase
- [Dashboard](https://docs.trunk.io/flaky-tests/overview/dashboard.md): Learn to find flaky tests and understand their impact using the Flaky Tests dashboard
- [Getting Started](https://docs.trunk.io/flaky-tests/get-started.md): Set up Trunk Flaky Tests by configuring test result output, uploading from CI, and enabling flake detection monitors.
- [Test Collections](https://docs.trunk.io/flaky-tests/get-started/test-collections.md): Organize your flaky tests into named collections to track and analyze specific subsets of your test suite.
- [Test frameworks](https://docs.trunk.io/flaky-tests/get-started/frameworks.md): Guides for generating Trunk-compatible test results from various test frameworks
- [Android](https://docs.trunk.io/flaky-tests/get-started/frameworks/android.md): A guide for generating Trunk-compatible test reports for Android projects
- [Bazel](https://docs.trunk.io/flaky-tests/get-started/frameworks/bazel.md): A guide for generating Trunk-compatible test reports with Bazel
- [Behave](https://docs.trunk.io/flaky-tests/get-started/frameworks/behave.md): A guide for generating Trunk-compatible test reports for Behave
- [cargo-nextest](https://docs.trunk.io/flaky-tests/get-started/frameworks/rust.md): A guide for generating Trunk-compatible test reports for Rust
- [Cypress](https://docs.trunk.io/flaky-tests/get-started/frameworks/cypress.md): A guide for generating Trunk-compatible test reports for Cypress tests
- [Dart Test](https://docs.trunk.io/flaky-tests/get-started/frameworks/dart-test.md): A guide for generating Trunk-compatible test reports for Dart tests
- [Go](https://docs.trunk.io/flaky-tests/get-started/frameworks/gotestsum.md): A guide for generating Trunk-compatible test reports for Go tests
- [GoogleTest](https://docs.trunk.io/flaky-tests/get-started/frameworks/googletest.md): A guide for generating Trunk-compatible test reports for GoogleTest
- [Gradle](https://docs.trunk.io/flaky-tests/get-started/frameworks/gradle.md): A guide for generating Trunk-compatible test reports for Gradle
- [Jasmine](https://docs.trunk.io/flaky-tests/get-started/frameworks/jasmine.md): A guide for generating Trunk-compatible test reports for Jasmine tests
- [Jest](https://docs.trunk.io/flaky-tests/get-started/frameworks/jest.md): A guide for generating Trunk-compatible test reports for Jest tests
- [Karma](https://docs.trunk.io/flaky-tests/get-started/frameworks/karma.md): A guide for generating Trunk-compatible test reports for Karma tests
- [Kotest](https://docs.trunk.io/flaky-tests/get-started/frameworks/kotest.md): A guide for generating Trunk-compatible test reports for Kotest
- [Maven](https://docs.trunk.io/flaky-tests/get-started/frameworks/maven.md): A guide for generating Trunk-compatible test reports for Maven
- [minitest](https://docs.trunk.io/flaky-tests/get-started/frameworks/minitest.md): A guide for generating Trunk-compatible test reports for minitest
- [Mocha](https://docs.trunk.io/flaky-tests/get-started/frameworks/mocha.md): A guide for generating Trunk-compatible test reports for Mocha
- [Nightwatch](https://docs.trunk.io/flaky-tests/get-started/frameworks/nightwatch.md): A guide for generating Trunk-compatible test reports for Nightwatch
- [NUnit](https://docs.trunk.io/flaky-tests/get-started/frameworks/nunit.md): A guide for generating Trunk-compatible test reports for NUnit
- [Pest](https://docs.trunk.io/flaky-tests/get-started/frameworks/pest.md): A guide for generating Trunk-compatible test reports for Pest
- [PHPUnit](https://docs.trunk.io/flaky-tests/get-started/frameworks/phpunit.md): A guide for generating Trunk-compatible test reports for PHPUnit
- [Playwright](https://docs.trunk.io/flaky-tests/get-started/frameworks/playwright.md): A guide for generating Trunk-compatible test reports for Playwright
- [Pytest](https://docs.trunk.io/flaky-tests/get-started/frameworks/pytest.md): A guide for generating Trunk-compatible test reports for Pytest
- [Robot Framework](https://docs.trunk.io/flaky-tests/get-started/frameworks/robot-framework.md): A guide for generating Trunk-compatible test reports for Robot Framework
- [RSpec](https://docs.trunk.io/flaky-tests/get-started/frameworks/rspec.md): A guide for generating Trunk-compatible test reports for RSpec using Trunk's RSpec plugin
- [RSpec (Manual Uploads)](https://docs.trunk.io/flaky-tests/get-started/frameworks/rspec/manual-uploads.md): A guide for generating Trunk-compatible test reports for RSpec without using Trunk's RSpec plugin
- [Swift Testing](https://docs.trunk.io/flaky-tests/get-started/frameworks/swift-testing.md): A guide for generating Trunk-compatible test reports with Swift Testing
- [Testplan](https://docs.trunk.io/flaky-tests/get-started/frameworks/testplan.md): A guide for generating Trunk-compatible test reports for Testplan
- [Vitest](https://docs.trunk.io/flaky-tests/get-started/frameworks/vitest.md): A guide for generating Trunk-compatible test reports with Vitest
- [XCTest](https://docs.trunk.io/flaky-tests/get-started/frameworks/xctest.md): A guide for generating Trunk-compatible test reports for XCode and xcodebuild
- [Other Test Frameworks](https://docs.trunk.io/flaky-tests/get-started/frameworks/other-test-frameworks.md): A guide for generating Trunk-compatible test reports with other test frameworks
- [CI Providers](https://docs.trunk.io/flaky-tests/get-started/ci-providers.md): You can easily integrate Flaky Tests from any CI Provider
- [Atlassian Bamboo](https://docs.trunk.io/flaky-tests/get-started/ci-providers/atlassian-bamboo.md): Configure Atlassian Bamboo to upload test results to Trunk Flaky Tests
- [Azure DevOps Pipelines](https://docs.trunk.io/flaky-tests/get-started/ci-providers/azure-devops-pipelines.md)
- [BitBucket Pipelines](https://docs.trunk.io/flaky-tests/get-started/ci-providers/bitbucket-pipelines.md)
- [Buildkite](https://docs.trunk.io/flaky-tests/get-started/ci-providers/buildkite.md): Configure Buildkite jobs to upload test results to Trunk Flaky Tests
- [CircleCI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/circleci.md): Configure CircleCI jobs to upload test results to Trunk Flaky Tests
- [Drone CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/droneci.md): Configure Flaky Tests using Drone CI
- [GitHub Actions](https://docs.trunk.io/flaky-tests/get-started/ci-providers/github-actions.md): Configure Flaky Tests detection using a GitHub Action
- [GitLab](https://docs.trunk.io/flaky-tests/get-started/ci-providers/gitlab.md): Configure Flaky Tests using GitLab CI
- [Google Cloud Build](https://docs.trunk.io/flaky-tests/get-started/ci-providers/google-cloud-build.md): Configure Google Cloud Build to upload test results to Trunk Flaky Tests
- [Jenkins](https://docs.trunk.io/flaky-tests/get-started/ci-providers/jenkins.md): Configure Flaky Tests using Jenkins
- [Semaphore CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/semaphoreci.md): Configure Flaky Tests using Semaphore CI
- [Travis CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/travisci.md): Configure Flaky Tests using Travis CI
- [Other CI Providers](https://docs.trunk.io/flaky-tests/get-started/ci-providers/otherci.md): Configure Flaky Tests using any CI Provider
- [Multiple Repositories and Forks](https://docs.trunk.io/flaky-tests/get-started/multiple-repositories.md): Learn how Trunk identifies repositories and how to track tests across forks and multiple repositories without mixing results.
- [Flaky test detection](https://docs.trunk.io/flaky-tests/detection.md): Learn how Trunk detects and labels flaky and broken tests
- [Pass-on-Retry Monitor](https://docs.trunk.io/flaky-tests/detection/pass-on-retry-monitor.md): Detect tests that fail then pass on retry within the same commit
- [Failure Rate Monitor](https://docs.trunk.io/flaky-tests/detection/failure-rate-monitor.md): Detect flaky or broken tests based on failure rate over a configurable time window
- [Failure Count Monitor](https://docs.trunk.io/flaky-tests/detection/failure-count-monitor.md): Detect flaky or broken tests as soon as they accumulate a configured number of failures
- [Flag as Flaky](https://docs.trunk.io/flaky-tests/detection/flag-as-flaky.md): Manually mark a test as flaky from the test detail page
- [The Importance of PR Test Results](https://docs.trunk.io/flaky-tests/detection/the-importance-of-pr-test-results.md): Why uploading test results from pull requests is required for accurate flaky test detection, quarantining, and impact measurement.
- [Infrastructure Failure Protection](https://docs.trunk.io/flaky-tests/detection/infrastructure-failure-protection.md): Prevent false Trunk Flaky Tests detections during CI outages and infrastructure failures.
- [Flaky test management](https://docs.trunk.io/flaky-tests/management.md): Organize, triage, and coordinate follow-up for detected flaky tests.
- [Managing detected flaky tests](https://docs.trunk.io/flaky-tests/management/managing-detected-flaky-tests.md): A step-by-step guide for building an automated process to manage detected flaky tests.
- [Test Labels](https://docs.trunk.io/flaky-tests/management/test-labels.md): Organize and categorize test cases with organization-scoped labels.
- [Pull request comments](https://docs.trunk.io/flaky-tests/management/github-pull-request-comments.md): Flaky Tests provides summary analytics about tests running on Pull Requests
- [Ticketing](https://docs.trunk.io/flaky-tests/management/ticketing.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets in your ticketing system
- [Jira integration](https://docs.trunk.io/flaky-tests/management/ticketing/jira-integration.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets with the Jira integration
- [Linear integration](https://docs.trunk.io/flaky-tests/management/ticketing/linear-integration.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets with the Linear integration
- [Other ticketing platforms](https://docs.trunk.io/flaky-tests/management/ticketing/other-ticketing-platforms.md): Triage your flaky tests faster by manually creating tickets from generated markdown
- [Quarantining](https://docs.trunk.io/flaky-tests/quarantining.md): Mitigate impact of known flaky tests by isolating them at run time
- [Quarantine Service Availability](https://docs.trunk.io/flaky-tests/quarantining/quarantine-service-availability.md): How Trunk Analytics CLI handles quarantine service outages without compromising your CI pipeline.
- [Webhooks](https://docs.trunk.io/flaky-tests/webhooks.md): Use webhooks to automate custom flaky test workflows
- [Integration for Slack](https://docs.trunk.io/flaky-tests/webhooks/slack-integration.md): Learn how to use flaky test webhooks to power Slack notifications
- [Microsoft Teams integration](https://docs.trunk.io/flaky-tests/webhooks/microsoft-teams-integration.md)
- [GitHub Issues integration](https://docs.trunk.io/flaky-tests/webhooks/github-issues-integration.md): Learn how to automatically create GitHub Issues with Flaky Tests webhooks
- [Linear integration](https://docs.trunk.io/flaky-tests/webhooks/linear-integration.md): Learn how to automatically create Linear issues with Flaky Tests webhooks
- [Jira integration](https://docs.trunk.io/flaky-tests/webhooks/jira-integration.md): Learn how to automatically create Jira issues with Flaky Test webhooks
- [Agents](https://docs.trunk.io/flaky-tests/agents.md): Use agents and AI workflows to investigate and fix flaky tests and CI failures.
- [Autofix Flaky Tests](https://docs.trunk.io/flaky-tests/agents/autofix-flaky-tests.md)
- [Autofix CI Failures](https://docs.trunk.io/flaky-tests/agents/autofix-ci-failures.md)
- [Reference](https://docs.trunk.io/flaky-tests/reference.md): Reference documentation for Flaky Tests APIs, CLI commands, and MCP tools.
- [CLI reference](https://docs.trunk.io/flaky-tests/reference/cli-reference.md): CLI tool for uploading test results to Trunk from CI, enabling flaky test detection and quarantining.
- [API reference](https://docs.trunk.io/flaky-tests/reference/api-reference.md): REST API for checking Trunk service status and fetching unhealthy or quarantined tests in your project.
- [MCP reference](https://docs.trunk.io/flaky-tests/reference/mcp-reference.md): Use the Trunk MCP server from your IDE or AI application to access flaky test insights and configure test uploads
- [Configuration](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration.md): Configure your AI application to connect to the Trunk MCP server for flaky test insights and setup assistance.
- [Cursor (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/cursor-ide.md): Add Trunk's MCP Server to Cursor
- [GitHub Copilot (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/github-copilot-ide.md): Add Trunk's MCP Server to GitHub Copilot
- [Claude Code (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-cli.md): Add Trunk's MCP Server to Claude Code
- [Claude Code Plugin](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-plugin.md): Install the Trunk plugin for Claude Code
- [Gemini (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/gemini-cli.md): Add Trunk's MCP Server to Gemini
- [Bearer Auth](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/bearer-auth.md): Add Trunk's MCP Server via Bearer Authentication
- [Search for tests](https://docs.trunk.io/flaky-tests/reference/mcp-reference/search-test.md): MCP tool reference: search-test
- [Fix flaky tests](https://docs.trunk.io/flaky-tests/reference/mcp-reference/fix-flaky-test.md): MCP tool reference: fix-flaky-test
- [Set up test uploads](https://docs.trunk.io/flaky-tests/reference/mcp-reference/set-up-test-uploads.md): MCP tool reference: setup-trunk-uploads
- [Investigate CI failure](https://docs.trunk.io/flaky-tests/reference/mcp-reference/investigate-ci-failure.md): MCP tool reference: investigate-ci-failure


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trunk.io/flaky-tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
