Flakewatch: Automated Categorization and Detection of Flaky Tests At Scale

Automated testing is essential for developing stable and effective software, as it enables developers to implement changes confidently while minimizing the risk of regressions in functionality. However, automated testing suffers from flaky tests, i.e. tests that both pass and fail nondeterministically on the same version of code. Flaky tests can be categorized based on their source of nondeterminism, including dependency on test order, false assumptions about their execution environment, and other sources of differing behavior between executions. While multiple techniques for detecting specific types of flaky tests exist, no tool can combine these detectors to perform categorization. Additionally, while large datasets of flaky tests exist, these tests are often outdated, and thus it can be difficult to reproduce their failures. We present Flakewatch, an automated tool to create a live dataset of categorized flaky tests, based on the output of existing detection tools. Flakewatch’s combination of multiple detection tools’ output helps to avoid false negative detections, where a true flaky test is incorrectly marked as not flaky. Given a project, Flakewatch will continuously pull for commits, then run detectors on tests found to be added or modified. Flakewatch then updates a live database of active flaky tests, including any that failed in continuous integration. Flakewatch contributes to furthering the development of automated flaky test detection tools and may help improve understanding of root causes and solutions to flaky tests.

Institutions

Publication Details

Journal
George Mason University
Published
2024-10-11
DOI
https://doi.org/10.13021/jssr2024.4244
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Flakewatch: Automated Categorization and Detection of Flaky Tests At Scale

George Mason University
Software Testing and Debugging Techniques
article

Flakewatch: Automated Categorization and Detection of Flaky Tests At Scale

article en

Abstract

Automated testing is essential for developing stable and effective software, as it enables developers to implement changes confidently while minimizing the risk of regressions in functionality. However, automated testing suffers from flaky tests, i.e. tests that both pass and fail nondeterministically on the same version of code. Flaky tests can be categorized based on their source of nondeterminism, including dependency on test order, false assumptions about their execution environment, and other sources of differing behavior between executions. While multiple techniques for detecting specific types of flaky tests exist, no tool can combine these detectors to perform categorization. Additionally, while large datasets of flaky tests exist, these tests are often outdated, and thus it can be difficult to reproduce their failures. We present Flakewatch, an automated tool to create a live dataset of categorized flaky tests, based on the output of existing detection tools. Flakewatch’s combination of multiple detection tools’ output helps to avoid false negative detections, where a true flaky test is incorrectly marked as not flaky. Given a project, Flakewatch will continuously pull for commits, then run detectors on tests found to be added or modified. Flakewatch then updates a live database of active flaky tests, including any that failed in continuous integration. Flakewatch contributes to furthering the development of automated flaky test detection tools and may help improve understanding of root causes and solutions to flaky tests.

George Mason University
George Mason University (US), The University of Texas at Austin (US)
Openalex Percentile: Top 44%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Flakewatch: Automated Categorization and Detection of Flaky Tests At Scale · George Mason University (2024) | TGRS Research Map | TGRS