什么是Flaky Tests?扩展复制
What is the Vocabulary of Flaky Tests? An Extended Replication
摘要:
由于自动化测试的广泛采用,软件系统一直在不断发展并以高质量交付。一个经常出现的问题是,存在非确定性测试,一个可能通过或失败的测试用例。一个有希望的,但缺乏更多经验证据的方法是收集自动化测试的静态数据,并使用它们来预测它们的脆弱性。在本文中,我们进行了一项实证研究,以评估使用代码标识符来预测测试片状。为了做到这一点,我们首先复制了Pinto等人以前研究的大部分内容。(MSR~2020年)。通过使用不同的ML Python平台(Scikit-learn)并在分析中添加不同的学习算法来扩展这种复制。然后,我们使用来自不同项目的数据集和其他测试来验证训练模型的性能。我们成功地重复了Pinto等人的结果。(2020),使用Scikit-learn时略有差异;不同算法的性能与之前使用的算法相似。关于验证,我们注意到训练模型的召回率较小,分类器呈现出不同范围的下降。这在项目内和项目间的测试片状预测中都观察到。
英文摘要:
Software systems have been continuously evolved and delivered with high quality due to the widespread adoption of automated tests. A recurring issue hurting this scenario is the presence of flaky tests, a test case that may pass or fail non-deterministically. A promising, but yet lacking more empirical evidence, approach is to collect static data of automated tests and use them to predict their flakiness. In this paper, we conducted an empirical study to assess the use of code identifiers to predict test flakiness. To do so, we first replicate most parts of the previous study of Pinto~et~al.~(MSR~2020). This replication was extended by using a different ML Python platform (Scikit-learn) and adding different learning algorithms in the analyses. Then, we validated the performance of trained models using datasets with other flaky tests and from different projects. We successfully replicated the results of Pinto~et~al.~(2020), with minor differences using Scikit-learn; different algorithms had performance similar to the ones used previously. Concerning the validation, we noticed that the recall of the trained models was smaller, and classifiers presented a varying range of decreases. This was observed in both intra-project and inter-projects test flakiness prediction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。