International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Monday, 26.10
Room: Room 2
Authors: Moustapha El Outmani
Abstract: Evaluating AI-generated test scripts is challenging because conventional measures such as syntactic validity, execution success, or error counts do not capture the amount of human intervention required before a generated script becomes usable. This paper proposes Human Rewrite Effort, an effort-aware evaluation metric for AI-generated test scripts. Recurring rewrite classes are derived from historical expert corrections captured through Git history and associated with context-specific estimates of the effort required to address them. By combining the occurrence and effort of required rewrites, the metric characterizes generated scripts according to their expected human remediation burden. Beyond evaluating individual generated scripts, the metric can be used comparatively to assess different generator configurations or versions. We demonstrate this use case through a pre- and post-optimization evaluation of an AI-based test-script generator, measuring whether the optimization reduces the required human rewrite effort. The approach is designed to be adaptable across development environments, where rewrite classes and their associated effort may vary with the framework, codebase, and organizational context.