一句话:Descartes 在 PITest 上实现极端变异算子,用于检测 Java 项目中的伪测试方法。
本文演示了 Descartes,一个基于 PITest 的变异测试引擎,旨在发现 Java 项目中的“伪测试方法”(pseudo-tested methods),即被测试执行覆盖但未被有效断言检测的方法。Descartes 利用 PITest 的高效代码变换与运行时特性,实现极端变异算子来暴露这类方法。工具演示将 Descartes 与 PITest 默认的变异引擎 Gregor 在多个真实开源项目上进行比较,考察执行时间、生成的变异体数量以及两者产生的变异得分之间的关系,并展示 Descartes 的主要功能与使用洞见。
Descartes is a tool that implements extreme mutation operators and aims at finding pseudo-tested methods in Java projects. It leverages the efficient transformation and runtime features of PITest. The demonstration compares Descartes with Gregor, the default mutation engine provided by PITest, in a set of real open source projects. It considers the execution time, number of mutants created and the relationship between the mutation scores produced by both engines. It provides some insights on the main features exposed byDescartes.