MMT:基于模型转换的 Java 字节码变异测试——一个演示性说明
MMT: Mutation Testing of Java Bytecode with Model Transformation -- An Illustrative Demonstration
AI总结:
针对传统变异测试扩展复杂变异困难的问题,提出基于模型转换的Java字节码变异方法及工具MMT,支持修改面向对象结构等高级变异,是唯一支持此类变异的Java字节码变异测试工具。
摘要:
变异测试是一种检查测试套件鲁棒性的方法。程序代码通过变异被轻微修改以注入错误。如果测试套件能够发现这些错误,则说明其足够鲁棒。变异测试工具通常集成一组变异算子,例如交换算术运算符;现代工具通常处理编译后的代码,如 Java 字节码。在这种情况下,变异的定义必须确保变异后的程序仍能被加载和执行。变异测试的结果直接取决于可能的变异。更高级的变异甚至特定领域的变异会给测试套件带来另一项挑战。由于扩展传统方法以支持更复杂的变异缺乏良好支持且难度较大,我们提出一种模型驱动的方法,通过模型转换灵活定义 Java 字节码的变异。相应的工具 MMT 已扩展了高级变异算子,用于修改面向对象结构、Java 特定属性和 API 的方法调用,使其成为唯一支持此类变异的 Java 字节码变异测试工具。
英文摘要:
Mutation testing is an approach to check the robustness of test suites. The program code is slightly changed by mutations to inject errors. A test suite is robust enough if it finds such errors. Tools for mutation testing usually integrate sets of mutation operators such as, for example, swapping arithmetic operators; modern tools typically work with compiled code such as Java bytecode. In this case, the mutations must be defined in such a way that the mutated program still can be loaded and executed. The results of mutation tests depend directly on the possible mutations. More advanced mutations and even domain-specific mutations can pose another challenge to the test suite. Since extending the classical approaches to more complex mutations is not well supported and is difficult, we propose a model-driven approach where mutations of Java bytecode can be flexibly defined by model transformation. The corresponding tool called MMT has been extended with advanced mutation operators for modifying object-oriented structures, Java-specific properties and method calls of APIs, making it the only mutation testing tool for Java bytecode that supports such mutations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。