测试用例质量:关于信念与证据的实证研究
Test case quality: an empirical study on belief and evidence
AI总结:
本文基于开放软件仓库开展实证研究,检验8项关于优秀测试用例特征的开发者信念,结果未发现支持证据,说明这些经验建议未必保证测试代码质量。
摘要:
软件测试是任何严肃软件开发过程中的强制性活动,因为缺陷是软件开发中的现实。这就引出了质量问题:好的测试能够有效发现缺陷,但在测试用例真正发现缺陷之前,其有效性仍然未知。因此,有必要确定什么构成好的或坏的测试。这并非一项简单的任务,已有许多研究识别出优秀测试用例的不同特征。此前一项研究评估了关于什么构成优秀测试用例的29个假设,但其发现基于开发者的信念,而这些信念具有主观性和偏差。在本文中,我们通过一项基于开放软件仓库的广泛实证研究,调查了其中8个假设。尽管我们尽了最大努力,仍未能找到支持这些信念的证据。这表明,尽管这些假设代表了良好的软件工程建议,但它们并不一定足以产生良好测试代码所期望的结果。
英文摘要:
Software testing is a mandatory activity in any serious software development process, as bugs are a reality in software development. This raises the question of quality: good tests are effective in finding bugs, but until a test case actually finds a bug, its effectiveness remains unknown. Therefore, determining what constitutes a good or bad test is necessary. This is not a simple task, and there are a number of studies that identify different characteristics of a good test case. A previous study evaluated 29 hypotheses regarding what constitutes a good test case, but the findings are based on developers' beliefs, which are subjective and biased. In this paper we investigate eight of these hypotheses, through an extensive empirical study based on open software repositories. Despite our best efforts, we were unable to find evidence that supports these beliefs. This indicates that, although these hypotheses represent good software engineering advice, they do not necessarily mean that they are enough to provide the desired outcome of good testing code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。