<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d" -->

---
title: Stop Flaky Tests from Blocking Your PRs | daily.dev
description: Flaky tests silently waste engineering time by blocking PRs with false CI failures, eroding trust in test suites over time. Tuist now detects flaky tests...
canonical: https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop Flaky Tests from Blocking Your PRs | daily.dev
og:description: Flaky tests silently waste engineering time by blocking PRs with false CI failures, eroding trust in test suites over time. Tuist now detects flaky tests...
og:url: https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d
og:image: https://api.daily.dev/og/posts/PspVjey9D.png
og:image:alt: Stop Flaky Tests from Blocking Your PRs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# Stop Flaky Tests from Blocking Your PRs

**[
      Tuist
    ](https://daily.dev/sources/tuist-blog)** · 7 min read · 0 upvotes · 0 comments

## Summary

Flaky tests silently waste engineering time by blocking PRs with false CI failures, eroding trust in test suites over time. Tuist now detects flaky tests automatically via retry-based detection (using Xcode's -retry-tests-on-failure) and cross-run detection (comparing results across CI runs on the same commit). Detected tests can be quarantined and excluded from CI using the tuist test case list --skip-testing command, and teams get Slack notifications and PR comments when new flaky tests appear. Upcoming features include issue tracker integration and test sharding for parallel execution.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tuist.dev/blog/2026/01/27/flaky-tests>

## Questions this post answers

### How does Tuist detect flaky tests automatically in Xcode CI runs?

Tuist detects flaky tests two ways: retry-based detection, where running tests with Xcode's -retry-tests-on-failure or -test-iterations flags lets Tuist mark a test as flaky if it fails once but passes on retry; and cross-run detection, which compares results across different CI runs on the same commit SHA, flagging both runs as flaky if one passes and the other fails.

_daily.dev surfaces practical CI reliability techniques for teams tired of flaky test noise._

### How do I skip quarantined flaky tests in an xcodebuild CI run with Tuist?

Run the tuist test case list command with the --skip-testing flag, which fetches all quarantined test identifiers and formats them as xcodebuild arguments, for example: xcodebuild test -scheme MyScheme $(tuist test case list --skip-testing). This excludes known-flaky tests from the run so they stop blocking pull requests while a fix is worked on.

_Teams debugging unreliable CI pipelines can track tooling like this on daily.dev._

## Similar posts on daily.dev

- [Taming Test Flakiness: How We Built a Scalable Tool to Detect and Manage Flaky Tests](https://daily.dev/posts/taming-test-flakiness-how-we-built-a-scalable-tool-to-detect-and-manage-flaky-tests-vm5csu9nu) · Atlassian · 0 upvotes · 0 comments
- [How to Tame Your Flaky Tests in TeamCity](https://daily.dev/posts/how-to-tame-your-flaky-tests-in-teamcity-srhpeck9w) · JetBrains · 0 upvotes · 0 comments
- [CircleCI Smarter Testing: Stop running tests that don't matter](https://daily.dev/posts/circleci-smarter-testing-stop-running-tests-that-don-t-matter-colzpxw8r) · CircleCI · 0 upvotes · 0 comments
- [Flaky Test Retries in Pest v4.5.0](https://daily.dev/posts/flaky-test-retries-in-pest-v4-5-0-x9iv1uekb) · Laravel News · 10 upvotes · 1 comments
- [Catch Flakes On Main](https://daily.dev/posts/catch-flakes-on-main-pcjvct68g) · matklad · 0 upvotes · 0 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#testing](https://daily.dev/tags/testing), [#tuist](https://daily.dev/tags/tuist)

[View this post on daily.dev](https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stop Flaky Tests from Blocking Your PRs","url":"https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d"},"datePublished":"2026-08-23T12:23:42.326Z","dateModified":"2026-10-14T02:33:59.944Z","description":"Flaky tests silently waste engineering time by blocking PRs with false CI failures, eroding trust in test suites over time. Tuist now detects flaky tests...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c2a2d6247df7d565de920665e1763cff?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c2a2d6247df7d565de920665e1763cff?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"\n      Tuist\n    ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"\n      Tuist\n    ","logo":"https://media.daily.dev/image/upload/s--3AYDH23h--/f_auto,q_auto/v1787487506/logos/tuist-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/tuist-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,testing,tuist","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"\n      Tuist\n    ","item":"https://daily.dev/sources/tuist-blog"},{"@type":"ListItem","position":3,"name":"Stop Flaky Tests from Blocking Your PRs"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/stop-flaky-tests-from-blocking-your-prs-pspvjey9d#faq","mainEntity":[{"@type":"Question","name":"How does Tuist detect flaky tests automatically in Xcode CI runs?","acceptedAnswer":{"@type":"Answer","text":"Tuist detects flaky tests two ways: retry-based detection, where running tests with Xcode's -retry-tests-on-failure or -test-iterations flags lets Tuist mark a test as flaky if it fails once but passes on retry; and cross-run detection, which compares results across different CI runs on the same commit SHA, flagging both runs as flaky if one passes and the other fails. daily.dev surfaces practical CI reliability techniques for teams tired of flaky test noise."}},{"@type":"Question","name":"How do I skip quarantined flaky tests in an xcodebuild CI run with Tuist?","acceptedAnswer":{"@type":"Answer","text":"Run the tuist test case list command with the --skip-testing flag, which fetches all quarantined test identifiers and formats them as xcodebuild arguments, for example: xcodebuild test -scheme MyScheme $(tuist test case list --skip-testing). This excludes known-flaky tests from the run so they stop blocking pull requests while a fix is worked on. Teams debugging unreliable CI pipelines can track tooling like this on daily.dev."}}]}
```

