arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1806.09774cs.SE
收藏

静态和动态测试用例优先级技术在现代软件系统中的表现如何?关于GitHub项目的扩展研究

How Do Static and Dynamic Test Case Prioritization Techniques Perform on Modern Software Systems? An Extensive Study on GitHub Projects

Qi Luo, Kevin Moran, Lingming Zhang, Denys Poshyvanyk

摘要:

测试用例优先级(TCP)是一种越来越重要的回归测试技术,用于根据预定义的目标重新排序测试用例,特别是随着敏捷实践的采用。为了更好地理解这些技术,我们进行了第一次广泛的研究,旨在经验评估四个静态TCP技术,比较他们与国家的研究动态TCP技术在几个质量指标。这项研究是在58个包含714个KLoC的真实Java程序上进行的,并得出了几个值得注意的观察结果。首先,我们在两个有效性指标(平均检测到的故障百分比APFD和成本认知APFDc)的结果表明,在测试类的粒度,这些指标往往是相关的,但这种相关性并不保持在测试方法的粒度。其次,我们的分析表明,静态技术可以令人惊讶的有效,特别是当测量APFDc。第三,我们发现,TCP技术往往表现得更好的较大的程序,但程序的大小并不影响技术之间的比较性能指标。第四,软件的演变并没有显着影响TCP技术之间的比较性能的结果。第五,在典型的实验设置下,使用的突变体的数量和类型都不会显著影响TCP有效性的测量。最后,我们的相似性分析表明,高度优先级的测试用例往往会发现不同的故障。

英文摘要:

Test Case Prioritization (TCP) is an increasingly important regression testing technique for reordering test cases according to a pre-defined goal, particularly as agile practices gain adoption. To better understand these techniques, we perform the first extensive study aimed at empirically evaluating four static TCP techniques, comparing them with state-of-research dynamic TCP techniques across several quality metrics. This study was performed on 58 real-word Java programs encompassing 714 KLoC and results in several notable observations. First, our results across two effectiveness metrics (the Average Percentage of Faults Detected APFD and the cost cognizant APFDc) illustrate that at test-class granularity, these metrics tend to correlate, but this correlation does not hold at test-method granularity. Second, our analysis shows that static techniques can be surprisingly effective, particularly when measured by APFDc. Third, we found that TCP techniques tend to perform better on larger programs, but that program size does not affect comparative performance measures between techniques. Fourth, software evolution does not significantly impact comparative performance results between TCP techniques. Fifth, neither the number nor type of mutants utilized dramatically impact measures of TCP effectiveness under typical experimental settings. Finally, our similarity analysis illustrates that highly prioritized test cases tend to uncover dissimilar faults.

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

↑