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

无测试预言情况下的Delta调试:通过蜕变测试

Delta Debugging in the Absence of Test Oracles Through Metamorphic Testing

Zhejiang Sci-Tech University(浙江理工大学);Monash University(莫纳什大学);Swinburne University of Technology(斯威本科技大学)

Mingyue Jiang, Yongqiang Tian, Tsong Yueh Chen

AI总结:

提出DDMT方法,利用蜕变测试替代测试预言,使Delta调试适用于缺乏测试预言的程序,实验表明能保持或提升约简效果与查询效率。

摘要:

Delta调试提供了一种自动最小化程序输入同时保持特定属性的方法。然而,其有效性从根本上依赖于测试预言的可用性,以确定简化后的输入是否仍保持该属性。因此,预言问题严重限制了现有Delta调试技术的适用性,特别是对于输出正确性无法直接确定的缺乏预言的程序。为解决此问题,本文提出了一种新颖方法DDMT,以增强Delta调试的适用性,特别是促进其在缺乏预言的程序上的应用。我们的关键洞察是重新设计一个独立于预言的测试函数,并将其融入Delta调试的约简过程中,使得属性保持验证无需测试预言即可完成。为此,DDMT采用了蜕变测试技术,这是一种基于属性且独立于预言的测试方法。它建立了一个基于蜕变测试的测试函数,用作Delta调试所采用的原始测试函数的替代。实验在66个主题上评估了DDMT,涵盖了有预言和缺乏预言的情景,并采用了不同的Delta调试方法。结果积极证实,DDMT能够增强Delta调试的适用性,同时通常保持或提升约简效果和查询效率。此外,与相关的Delta调试方法相比,DDMT在适当配置下也能实现性能提升。

英文摘要:

Delta debugging provides an automatic way to minimize a program input while preserving a certain property. However, its effectiveness fundamentally relies on the availability of test oracles to determine whether a reduced input still preserves the specific property. Consequently, the oracle problem substantially limits the applicability of existing delta debugging techniques, particularly for oracle-deficient programs where output correctness cannot be directly determined. To address this problem, this paper proposes a novel approach, DDMT, to enhance the applicability of delta debugging, especially facilitating its application to oracle-deficient programs. Our key insight is to redesign an oracle-independent test function and incorporate it into the reduction procedure of delta debugging such that the property-preservation validation can be accomplished without requiring a test oracle. To this end, DDMT employs the technique of metamorphic testing, which is a property-based and oracle-independent testing method. It establishes a metamorphic testing-based test function, using it as a replacement for the original test function adopted by delta debugging. The experiments evaluate DDMT on 66 subjects across both oracle-available and oracle-deficient scenarios, with different delta debugging approaches. The results positively confirm that DDMT can enhance the applicability of delta debugging while often preserving or improving reduction effectiveness and query efficiency. Furthermore, compared to the relevant delta debugging approaches, DDMT is also able to achieve performance improvements with proper configurations.

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

↑