FlaPy: Mining Flaky Python Tests at Scale
Not on the map. Why?
Abstract (arXiv)
Flaky tests obstruct software development, and studying and proposing mitigations against them has therefore become an important focus of software engineering research. To conduct sound investigations on test flakiness, it is crucial to have large, diverse, and unbiased datasets of flaky tests. A common method to build such datasets is by rerunning the test suites of selected projects multiple times and checking for tests that produce different outcomes. While using this technique on a single project is mostly straightforward, applying it to a large and diverse set of projects raises several implementation challenges such as (1) isolating the test executions, (2) supporting multiple build mechanisms, (3) achieving feasible run times on large datasets, and (4) analyzing and presenting the test outcomes. To address these challenges we introduce FlaPy, a framework for researchers to mine flaky tests in a given or automatically sampled set of Python projects by rerunning their test suites. FlaPy isolates the test executions using containerization and fresh execution environments to simulate real-world CI conditions and to achieve accurate results. By supporting multiple dependency installation strategies, it promotes diversity among the studied projects. FlaPy supports parallelizing the test executions using SLURM, making it feasible to scan thousands of projects for test flakiness. Finally, FlaPy analyzes the test outcomes to determine which tests are flaky and depicts the results in a concise table. A demo video of FlaPy is available at https://youtu.be/ejy-be-FvDY
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 May 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 45
- 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
- 2025Process-Level Trajectory Evaluation for Environment Configuration in Software Engineering Agentscited by 17
- 2026MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineeringcited by 3
- 2026MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering30 Jan 2026
- 2025Process-Level Trajectory Evaluation for Environment Configuration in Software Engineering Agents29 Oct 2025
- 2025EnvBench: A Benchmark for Automated Environment Setup18 Mar 2025
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects13 Dec 2024