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

静态和动态测试用例优先级排序技术的大规模实证比较

A Large-Scale Empirical Comparison of Static and Dynamic Test Case Prioritization Techniques

Qi Luo, Kevin Moran, Denys Poshyvanyk

摘要:

测试用例优先级(TCP)技术的大量现有研究可以大致分为两类:动态技术(依赖于运行时执行信息)和静态技术(直接对源代码和测试代码进行操作)。缺乏从目前的工作机构是一个全面的研究,旨在了解和评估的静态方法,并比较它们的动态方法在一个大的项目。在这项工作中,我们进行了第一次广泛的研究,旨在经验评估四个静态TCP技术比较他们与国家的研究动态TCP技术在不同的测试用例粒度(例如,方法和类级别)的有效性,效率和相似性的故障检测。这项研究是在30个包含431个KLoC的真实Java程序上进行的。在有效性方面,我们发现,静态调用图为基础的技术优于其他静态技术在测试类的水平,但主题模型为基础的技术在测试方法的水平表现更好。在效率方面,与其他静态技术相比,基于静态调用图的技术也是最有效的。当检查的四个静态技术相比,四个动态的检测到的故障的相似性,我们发现,平均而言,这两组技术发现的故障是非常不一样的,与前10%的测试用例同意只有25% - 30%的检测到的故障。这促使进一步研究这些技术所发现的故障的严重性/重要性,并结合静态和动态信息,以获得更有效的方法。

英文摘要:

The large body of existing research in Test Case Prioritization (TCP) techniques, can be broadly classified into two categories: dynamic techniques (that rely on run-time execution information) and static techniques (that operate directly on source and test code). Absent from this current body of work is a comprehensive study aimed at understanding and evaluating the static approaches and comparing them to dynamic approaches on a large set of projects. In this work, we perform the first extensive study aimed at empirically evaluating four static TCP techniques comparing them with state-of-research dynamic TCP techniques at different test-case granularities (e.g., method and class-level) in terms of effectiveness, efficiency and similarity of faults detected. This study was performed on 30 real-word Java programs encompassing 431 KLoC. In terms of effectiveness, we find that the static call-graph-based technique outperforms the other static techniques at test-class level, but the topic-model-based technique performs better at test-method level. In terms of efficiency, the static call-graph-based technique is also the most efficient when compared to other static techniques. When examining the similarity of faults detected for the four static techniques compared to the four dynamic ones, we find that on average, the faults uncovered by these two groups of techniques are quite dissimilar, with the top 10% of test cases agreeing on only 25% - 30% of detected faults. This prompts further research into the severity/importance of faults uncovered by these techniques, and into the potential for combining static and dynamic information for more effective approaches.

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

↑