Toward static test flakiness prediction: a feasibility study

Valeria Pontillo, Fabio Palomba, F. Ferrucci
{"title":"Toward static test flakiness prediction: a feasibility study","authors":"Valeria Pontillo, Fabio Palomba, F. Ferrucci","doi":"10.1145/3472674.3473981","DOIUrl":null,"url":null,"abstract":"Flaky tests are tests that exhibit both a passing and failing behavior when run against the same code. While the research community has attempted to define automated approaches for detecting and addressing test flakiness, most of them suffer from scalability issues and uncertainty as they require test cases to be run multiple times. This limitation has been recently targeted by means of machine learning solutions that could predict the flakiness of tests using a set of both static and dynamic metrics that would avoid the re-execution of tests. Recognizing the effort spent so far, this paper poses the first steps toward an orthogonal view of the problem, namely the classification of flaky tests using only statically computable software metrics. We propose a feasibility study on 72 projects of the iDFlakies dataset, and investigate the differences between flaky and non-flaky tests in terms of 25 test and production code metrics and smells. First, we statistically assess those differences. Second, we build a logistic regression model to verify the extent to which the differences observed are still significant when the metrics are considered together. The results show a relation between test flakiness and a number of test and production code factors, indicating the possibility to build classification approaches that exploit those factors to predict test flakiness.","PeriodicalId":265246,"journal":{"name":"Proceedings of the 5th International Workshop on Machine Learning Techniques for Software Quality Evolution","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"13","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 5th International Workshop on Machine Learning Techniques for Software Quality Evolution","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3472674.3473981","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 13

Abstract

Flaky tests are tests that exhibit both a passing and failing behavior when run against the same code. While the research community has attempted to define automated approaches for detecting and addressing test flakiness, most of them suffer from scalability issues and uncertainty as they require test cases to be run multiple times. This limitation has been recently targeted by means of machine learning solutions that could predict the flakiness of tests using a set of both static and dynamic metrics that would avoid the re-execution of tests. Recognizing the effort spent so far, this paper poses the first steps toward an orthogonal view of the problem, namely the classification of flaky tests using only statically computable software metrics. We propose a feasibility study on 72 projects of the iDFlakies dataset, and investigate the differences between flaky and non-flaky tests in terms of 25 test and production code metrics and smells. First, we statistically assess those differences. Second, we build a logistic regression model to verify the extent to which the differences observed are still significant when the metrics are considered together. The results show a relation between test flakiness and a number of test and production code factors, indicating the possibility to build classification approaches that exploit those factors to predict test flakiness.
对静态试验薄片预测的可行性研究
不稳定的测试是在对同一代码运行时同时表现出通过和失败行为的测试。虽然研究团体试图定义自动化的方法来检测和处理测试缺陷,但大多数方法都存在可伸缩性问题和不确定性,因为它们需要多次运行测试用例。最近,机器学习解决方案已经针对这一限制,该解决方案可以使用一组静态和动态指标来预测测试的脆弱性,从而避免重新执行测试。认识到到目前为止所付出的努力,本文提出了问题的正交视图的第一步,即仅使用静态可计算的软件度量对片状测试进行分类。我们对iDFlakies数据集的72个项目进行了可行性研究,并在25个测试和生产代码度量和气味方面调查了片状和非片状测试之间的差异。首先,我们对这些差异进行统计评估。其次,我们建立了一个逻辑回归模型,以验证在何种程度上观察到的差异仍然显著时,将指标考虑在一起。结果显示了测试碎片与许多测试和生产代码因素之间的关系,表明了构建利用这些因素来预测测试碎片的分类方法的可能性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信