Lune

ICSE2022顶会

Preempting Flaky Tests via Non-Idempotent-Outcome Tests

Anjiang Wei, Pu Yi, Zhengxi Li, Tao Xie, Darko Marinov, Wing Lam

摘要

Regression testing can greatly help in software development, but it can be seriously undermined by flaky tests, which can both pass and fail, seemingly nondeterministically, on the same code commit. Flaky tests are an emerging topic in both research and industry. Prior work has identified multiple categories of flaky tests, developed techniques for detecting these flaky tests, and analyzed some detected flaky tests. To proactively detect, i.e., preempt, flaky tests, we propose to detect non-idempotent-outcome (NIO) tests, a novel category related to flaky tests. In particular, we run each test twice in the same test execution environment, e.g., run each Java test twice in the same Java Virtual Machine. A test is NIO if it passes in the first run but fails in the second. Each NIO test has side effects and "selfpollutes" the state shared among test runs. We perform experiments on both Java and Python open-source projects, detecting 223 NIO Java tests and 138 NIO Python tests. We have inspected all 361 detected tests and opened pull requests that fix 268 tests, with 192 already accepted, only 6 rejected, and the remaining 70 pending.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Transforming Test Suites into Croissants 引用了 FlakeFlagger: Predicting Flakiness Without Rerunning Tests
  • Transforming Test Suites into Croissants 引用了 A large-scale longitudinal study of flaky tests
  • Transforming Test Suites into Croissants 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • Transforming Test Suites into Croissants 引用了 A study on the lifecycle of flaky tests
  • FlakeFlagger: Predicting Flakiness Without Rerunning Tests 引用了 A large-scale longitudinal study of flaky tests
  • A Dataset of Reproducible Flaky-Test Failures 引用了 FlakeFlagger: Predicting Flakiness Without Rerunning Tests
  • A Dataset of Reproducible Flaky-Test Failures 引用了 Repairing Order-Dependent Flaky Tests via Test Generation
  • A Dataset of Reproducible Flaky-Test Failures 引用了 A study on the lifecycle of flaky tests
  • Do Automatic Test Generation Tools Generate Flaky Tests? 引用了 FlakeFlagger: Predicting Flakiness Without Rerunning Tests
  • Do Automatic Test Generation Tools Generate Flaky Tests? 引用了 Repairing Order-Dependent Flaky Tests via Test Generation
  • Do Automatic Test Generation Tools Generate Flaky Tests? 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • Do Automatic Test Generation Tools Generate Flaky Tests? 引用了 A study on the lifecycle of flaky tests
  • FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale 引用了 Repairing Order-Dependent Flaky Tests via Test Generation
  • FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale 引用了 A study on the lifecycle of flaky tests
  • Repairing Order-Dependent Flaky Tests via Test Generation 引用了 A large-scale longitudinal study of flaky tests
  • Repairing Order-Dependent Flaky Tests via Test Generation 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • Detecting flaky tests in probabilistic and machine learning applications 引用了 A study on the lifecycle of flaky tests
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Repairing Order-Dependent Flaky Tests via Test GenerationChengpeng Li, Chenguang Zhu, Wenxi Wang, August ShiICSE 2022 · 22 次引用
  2. Do Automatic Test Generation Tools Generate Flaky Tests?Martin Gruber, Muhammad Firhard Roslan, Owain Parry, Fabian Scharnböck 等ICSE 2024 · 12 次引用
  3. Transforming Test Suites into CroissantsYang Chen, Alperen Yildiz, Darko Marinov, Reyhaneh JabbarvandISSTA 2023 · 5 次引用
  4. FlakyGuard: Automatically Fixing Flaky Tests at Industry ScaleChengpeng Li, Farnaz Behrang, August Shi, Peng LiuASE 2025 · 1 次引用
  5. A Dataset of Reproducible Flaky-Test FailuresSuzzana Rafi, Mahbub-Ul-Hoque Sumon, Md Erfan, Maruf Morshed Khan 等ISSTA 2026

它引用的 Paper13

  1. A study on the lifecycle of flaky testsWing Lam, Kivanç Muslu, Hitesh Sajnani, Suresh ThummalapentaICSE 2020 · 107 次引用
  2. Detecting flaky tests in probabilistic and machine learning applicationsSaikat Dutta, August Shi, Rutvik Choudhary, Zhekun Zhang 等ISSTA 2020 · 71 次引用
  3. FlakeFlagger: Predicting Flakiness Without Rerunning TestsAbdulrahman Alshammari, Christopher Morris, Michael Hilton, Jonathan BellICSE 2021 · 63 次引用
  4. A large-scale longitudinal study of flaky testsWing Lam, Stefan Winter, Anjiang Wei, Tao Xie 等OOPSLA 2020 · 63 次引用
  5. Fixing dependency errors for Python build reproducibilitySuchita Mukherjee, Abigail Almanza, Cindy Rubio-GonzálezISSTA 2021 · 55 次引用

相关 Paper

  1. Evolution-aware detection of order-dependent flaky testsChengpeng Li, August ShiISSTA 2022 · 12 次引用
  2. NIODebugger: A Novel Approach to Repair Non-Idempotent-Outcome Tests with LLM-Based AgentKaiyao KeICSE 2025 · 3 次引用
  3. FlakeSync: Automatically Repairing Async Flaky TestsShanto Rahman, August ShiICSE 2024 · 7 次引用
  4. Dependent-test-aware regression testing techniquesWing Lam, August Shi, Reed Oei, Sai Zhang 等ISSTA 2020 · 44 次引用
  5. Detecting Flaky Tests by Controlling Nondeterministic API BehaviorHengchen Yuan, Jiefang Lin, August ShiOOPSLA 2026
黄昏的海面,两侧是细线勾勒的悬崖