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

用Hoist扩展层次Delta算子

Extending Hierarchical Delta Debugging with Hoisting

Dániel Vince, Renáta Hodován, Daniella Bársony, Ákos Kiss

摘要:

最小化失败的测试用例是调试过程中重要的预处理步骤。如果触发bug的测试用例中的大部分内容并没有导致实际的失败,那么修复bug所需的时间可能会大大增加。然而,测试用例缩减本身可能是一项耗时的任务,特别是如果手动完成的话。因此,已经提出了自动最小化技术,最小化增量最小化(DADMIN)和分层增量最小化(HDD)算法是最公知的。DADMIN不需要任何关于测试用例结构的信息,因此它适用于任何类型的输入。然而,如果结构是已知的,它可以被用来更快地创建更小的测试用例。HDD就是一个很好的例子,它处理树结构的输入,在DADMIN的帮助下在树的每一层修剪子树。在本文中,我们提出了一种减少方法,不修剪子树,但取代它们与兼容的子树进一步下降的层次结构,称为提升HDD扩展。我们在多个测试套件上评估了修剪和提升的各种组合,发现提升可以帮助进一步减少测试用例的大小,与基线HDD相比,减少了80%。我们还将我们的结果与其他最先进的测试用例约简算法进行了比较,发现HDD扩展提升在大多数情况下可以产生较小的输出。

英文摘要:

Minimizing failing test cases is an important pre-processing step on the path of debugging. If much of a test case that triggered a bug does not contribute to the actual failure, then the time required to fix the bug can increase considerably. However, test case reduction itself can be a time consuming task, especially if done manually. Therefore, automated minimization techniques have been proposed, the minimizing Delta Debugging (DDMIN) and the Hierarchical Delta Debugging (HDD) algorithms being the most well known. DDMIN does not need any information about the structure of the test case, thus it works for any kind of input. If the structure is known, however, it can be utilized to create smaller test cases faster. This is exemplified by HDD, which works on tree-structured inputs, pruning subtrees at each level of the tree with the help of DDMIN. In this paper, we propose to extend HDD with a reduction method that does not prune subtrees, but replaces them with compatible subtrees further down the hierarchy, called hoisting. We have evaluated various combinations of pruning and hoisting on multiple test suites and found that hoisting can help to further reduce the size of test cases by as much as 80% compared to the baseline HDD. We have also compared our results to other state-of-the-art test case reduction algorithms and found that HDD extended with hoisting can produce smaller output in most of the cases.

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

↑