arrow
Return

Test Flakiness Across Programming Languages

delete2023-04-01
delete5
PRE
AI
K
Keila Barbosa
R
Ronivaldo Ferreira
G
Gustavo Pinto
M
Marcelo d’Amorim
B
Breno Miranda *
DOI:10.1109/TSE.2022.3208864delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Regression Testing (RT) is a quality-assurance practice commonly adopted in the software industry to check if functionality remains intact after code changes. Test flakiness is a serious problem for RT. A test is said to be flaky when it non-deterministically passes or fails on a fixed environment. Prior work studied test flakiness primarily on Java programs. It is unclear, however, how problematic is test flakiness for software written in other programming languages. This paper reports on a study focusing on three central aspects of test flakiness: concentration, similarity, and cost. Considering concentration, our results show that, for any given programming language that we studied (C, Go, Java, JS, and Python), most issues could be explained by a small fraction of root causes (5/13 root causes cover 78.07% of the issues) and could be fixed by a relatively small fraction of fix strategies (10/23 fix strategies cover 85.20% of the issues). Considering similarity, although there were commonalities in root causes and fixes across languages (e.g., concurrency and async wait are common causes of flakiness in most languages), we also found important differences (e.g., flakiness due to improper release of resources are more common in C), suggesting that there is opportunity to fine tuning analysis tools. Considering cost, we found that issues related to flaky tests are resolved either very early once they are posted (<10 days), suggesting relevance, or very late (>100 days), suggesting irrelevance.
Keywords:
Software
Codes
Testing
Concurrent computing
Java
Costs
Maintenance engineering
Regression testing
test flakiness
programming languages

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

U
Universidade Federal de Pernambuco
Scholars:
1.3W
Papers: 7.3K
Citations: 5.3K
U
universidade federal do para
Scholars:
7.4K
Papers: 3.8K
Citations: 4
Cited Papers

Cited Papers

Prolyl 3-hydroxylase-1 null mice exhibit hearing impairment and abnormal morphology of the middle ear bone joints
err2013-01-01
err0
errOAAI
errElena Pokidysheva; Sara Tufa; Chris Bresee; John V. Brigande; Hans Peter Bächinger
errShare
errSave
Mast cell stabilization with sodium cromoglycate modulates pulmonary vessel wall remodeling during four-day hypoxia in rats
err2015-06-08
err0
PREAI
errTomáš Novotný; Jakub Krejčí; Jana Malíková; Vojtěch Švehlík; Roman Wasserbauer; Jiří Uhlík; Luděk Vajner
errShare
errSave
errShare
errSave
Disturbance, neutral theory, and patterns of beta diversity in soil communities
err2014-12-02
err0
errOAAI
errStefanie Maaß; Massimo Migliorini; Matthias C. Rillig; Tancredi Caruso
errShare
errSave
Inherited uric acid lithiasis
err1962-12-01
err0
PREAI
errAndre de Vries; Menahem Frank; Abraham Atsmon
errShare
errSave
Know You Neighbor: Fast Static Prediction of Test Flakiness
err2021-01-01
err26
errOAAI
errVerdecchia, Roberto; Cruciani, Emilio; Miranda, Breno; Bertolino, Antonia
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
researcher View more