arrow
返回

Empirically evaluating flaky test detection techniques combining test case rerunning and machine learning models

delete2023-04-28
delete6
delete
OA
AI
O
Owain Parry *
G
Gregory M. Kapfhammer
M
Michael Hilton
P
Phil McMinn
DOI:10.1007/s10664-023-10307-wdelete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
A flaky test is a test case whose outcome changes without modification to the code of the test case or the program under test. These tests disrupt continuous integration, cause a loss of developer productivity, and limit the efficiency of testing. Many flaky test detection techniques are rerunning-based, meaning they require repeated test case executions at a considerable time cost, or are machine learning-based, and thus they are fast but offer only an approximate solution with variable detection performance. These two extremes leave developers with a stark choice. This paper introduces CANNIER, an approach for reducing the time cost of rerunning-based detection techniques by combining them with machine learning models. The empirical evaluation involving 89,668 test cases from 30 Python projects demonstrates that CANNIER can reduce the time cost of existing rerunning-based techniques by an order of magnitude while maintaining a detection performance that is significantly better than machine learning models alone. Furthermore, the comprehensive study extends existing work on machine learning-based detection and reveals a number of additional findings, including (1) the performance of machine learning models for detecting polluter test cases; (2) using the mean values of dynamic test case features from repeated measurements can slightly improve the detection performance of machine learning models; and (3) correlations between various test case features and the probability of the test case being flaky.
Keyword:
Software testing
Flaky tests
Machine learning

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
University of Sheffield
学者数:
3.0W
论文数: 2.9W
被引数: 3.9W
Allegheny College 封面图
Allegheny College
学者数:
224
论文数: 175
被引数: 276
C
Carnegie Mellon University
学者数:
1.4W
论文数: 1.4W
被引数: 2.7W
学者 查看更多机构
引用论文

引用论文

A Survey on Causal Inference因果推理研究综述
err2021-05-10
err298
errOAAI
errYao, Liuyi; Chu, Zhixuan; Li, Sheng; Li, Yaliang; Gao, Jing; Zhang, Aidong
err分享
err收藏
On the propagation of low‐frequency fluctuations in the plasma sheet: 2. Characterization of the MHD eigenmodes and physical implications
err2004-03-24
err0
errOAAI
errG. Fruit; P. Louarn; E. Budnik; J. A. Sauvaud; C. Jacquey; D. Le Quéau; H. Rème; E. Lucek; A. Balogh; N. Cornilleau‐Wehrlin
err分享
err收藏
The ratio of free to total prostate-specific antigen in serum is correlated to the prostate volume
err1996-07-29
err0
errOAAI
errCarsten Stephan; Klaus Jung; Michael Lein; Dietmar Schnorr; Stefan A. Loening
err分享
err收藏
学者 查看更多内容