arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.00673cs.SE
收藏

影响考试片面性的因素及其影响的实证分析--从业人员的认知

Empirical Analysis of Factors and their Effect on Test Flakiness - Practitioners' Perceptions

Azeem Ahmad, Ola Leifler, Kristian Sandahl

摘要:

开发人员总是希望确保他们对代码库的最新更改不会破坏现有功能。如果测试用例失败,他们希望这些失败与提交的变更有关。不幸的是,重复测试可能是测试失败的原因。开发人员花时间将可能的测试失败与提交的更改联系起来,结果发现这些失败的原因是测试不稳定。识别真正的失败还是测试失败的两难境地影响了开发人员对什么是测试脆弱性的看法。先前对测试片状性的研究仅限于测试气味和检测测试片状性的工具。在本文中,我们进行了多个案例研究,在斯堪的纳维亚半岛的四个不同的行业,以了解从业者的看法,测试片状和这是如何不同的行业。我们观察到,在从业者如何看待测试片状性方面几乎没有差异。我们确定了23个因素,被认为是影响测试片状。这些感知的因素分为1)软件测试质量,2)软件质量,3)实际Flaky测试和4)公司特定的因素。我们已经研究了影响的性质,如因素是否增加,减少或影响检测测试片状的能力。我们与4家公司的不同参与者验证了我们的研究结果,以避免偏见。被试对所识别的影响因素及其影响的平均一致率分别为86%和86%。

英文摘要:

Developers always wish to ensure that their latest changes to the code base do not break existing functionality. If test cases fail, they expect these failures to be connected to the submitted changes. Unfortunately, a flaky test can be the reason for a test failure. Developers spend time to relate possible test failures to the submitted changes only to find out that the cause for these failures is test flakiness. The dilemma of an identification of the real failures or flaky test failures affects developers' perceptions about what is test flakiness. Prior research on test flakiness has been limited to test smells and tools to detect test flakiness. In this paper, we have conducted a multiple case study with four different industries in Scandinavia to understand practitioners' perceptions about test flakiness and how this varies between industries. We observed that there are little differences in how the practitioners perceive test flakiness. We identified 23 factors that are perceived to affect test flakiness. These perceived factors are categorized as 1) Software test quality, 2) Software Quality, 3) Actual Flaky test and 4) Company-specific factors. We have studied the nature of effects such as whether factors increase, decrease or affect the ability to detect test flakiness. We validated our findings with different participants of the 4 companies to avoid biases. The average agreement rate of the identified factors and their effects are 86% and 86% respectively, among participants.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑