• Home
  • Search
  • Practical Flaky Test Prediction using Common Code Evolution and Test History Data
  • Open Access IconOpen Access
  • Cite Icon9
  • https://doi.org/10.1109/icst57152.2023.00028Copy DOI Icon

Practical Flaky Test Prediction using Common Code Evolution and Test History Data

  • Apr 1, 2023
  • Martin Gruber +4 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Non-deterministically behaving test cases cause developers to lose trust in their regression test suites and to eventually ignore failures. Detecting flaky tests is therefore a crucial task in maintaining code quality, as it builds the necessary foundation for any form of systematic response to flakiness, such as test quarantining or automated debugging. Previous research has proposed various methods to detect flakiness, but when trying to deploy these in an industrial context, their reliance on instrumentation, test reruns, or language-specific artifacts was inhibitive. In this paper, we therefore investigate the prediction of flaky tests without such requirements on the underlying programming language, CI, build or test execution framework. Instead, we rely only on the most commonly available artifacts, namely the tests' outcomes and durations, as well as basic information about the code evolution to build predictive models capable of detecting flakiness. Furthermore, our approach does not require additional reruns, since it gathers this data from existing test executions. We trained several established classifiers on the suggested features and evaluated their performance on a large-scale industrial software system, from which we collected a data set of 100 flaky and 100 non-flaky test- and code-histories. The best model was able to achieve an F1-score of 95.5% using only 3 features: the tests' flip rates, the number of changes to source files in the last 54 days, as well as the number of changed files in the most recent pull request.

Similar Papers
  • Conference Article
  • Citations20

Feature modeling of two large-scale industrial software systems: Experiences and lessons learned

  • Sep 01, 2015
  • Daniela Lettner +3
  • Conference Article
  • Citations12

Evaluating Features for Machine Learning Detection of Order- and Non-Order-Dependent Flaky Tests

  • Apr 01, 2022
  • Owain Parry +3
  • Research Article

SIGSOFT Outstanding Doctoral Dissertation Award

  • Jul 14, 2021
  • ACM SIGSOFT Software Engineering Notes
  • August Shi
  • Research Article

Detailed Process for Developing an Efficient Anomaly Detection Algorithm for Real-Time Streaming Data in Large-Scale Industrial Systems

  • Jun 17, 2023
  • INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
  • Rakesh Kumar Sen
  • Research Article
  • Citations4

Evaluating regression test suites based on their fault exposure capability

  • Jan 01, 2000
  • Journal of Software Maintenance: Research and Practice
  • Sebastian G Elbaum +1
  • Research Article

Correlation-Aided Neural Network for Distributed Process Monitoring of Large-Scale Industrial Automation Systems

  • Aug 29, 2025
  • IEEE Transactions on Industrial Informatics
  • Long Gao +4
  • Conference Article
  • Citations139

Detecting performance anti-patterns for applications developed using object-relational mapping

  • May 31, 2014
  • Tse-Hsun Chen +5
  • Conference Article
  • Citations6

A case study on applying clone technology to an industrial application framework

  • Jun 01, 2012
  • Eray Tuzun +1
  • Conference Article
  • Citations32

A Large-Scale Industrial Case Study on Architecture-Based Software Reliability Analysis

  • Nov 01, 2010
  • Heiko Koziolek +2
  • Conference Article
  • Citations25

A framework for modeling agent-oriented software

  • Apr 16, 2001
  • Haiping Xu +1
  • Research Article
  • Citations61

A framework for model-based design of agent-oriented software

  • Jan 01, 2003
  • IEEE Transactions on Software Engineering
  • Haiping Xu +1
  • Conference Article
  • Citations15

An initial experiment in reverse engineering aspects

  • Nov 08, 2004
  • M Bruntink +2
  • Research Article

DECK: Experiences on Delta Checkpointing for Industrial Recommendation Systems

  • Aug 01, 2025
  • Proceedings of the VLDB Endowment
  • Xinwen Gao +15
  • Conference Article
  • Citations6

Quality Assessment for Large-Scale Industrial Software Systems: Experience Report at Alibaba

  • Dec 01, 2019
  • Chen Zhi +6
  • Book Chapter
  • Citations6

Supporting Multiplicity and Hierarchy in Model-Based Configuration: Experiences and Lessons Learned

  • Jan 01, 2014
  • Rick Rabiser +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.