ReqTestAgent: execution-grounded language-model agents for acceptance testing under requirement ambiguity.
Yunjiao Shi, Rui Song
Faculty of Engineering, The University of Hong Kong, Hong Kong, Hong Kong SAR, China. · Department of Earth Sciences, University of Cambridge, Cambridge, United Kingdom.
Key points
From the paper's conclusion- Presents ReqTestAgent, an execution-grounded workflow that connects requirement interpretation, testing-knowledge retrieval, test generation, and feedback from canonical execution and mutation testing.
- Evaluated 100 requirement instances formed from 25 Orchid/BigCodeBench tasks, each with lexical, semantic, syntactic, and vagueness variants, using a reference implementation available to the evaluator.
- ReqTestAgent achieves 92% qualified suites and a macro-averaged effective mutation score of 0.678, compared with 0.655–0.670 for the verifier-enhanced baselines, and execution feedback provides the principal validity improvement.
Abstract
INTRODUCTION: Large language models (LLMs) can translate ambiguous requirements into executable tests whose assertions conflict with the accepted behavior. Evaluating such tests requires distinguishing behavioral compatibility from fault-detection strength. METHODS: We present ReqTestAgent, an execution-grounded workflow that connects requirement interpretation, testing-knowledge retrieval, test generation, and feedback from canonical execution and mutation testing. We evaluate 100 requirement instances formed from 25 Orchid/BigCodeBench tasks, each with lexical, semantic, syntactic, and vagueness variants, using a reference implementation available to the evaluator. Comparisons include three generation baselines, their verifier-enhanced counterparts, and component ablations. RESULTS: The generation baselines fail the canonical implementation on 51%-68% of instances, whereas all verifier-enhanced methods achieve 100% canonical pass. ReqTestAgent achieves 92% qualified suites and a macro-averaged effective mutation score of 0.678, compared with 0.655-0.670 for the verifier-enhanced baselines. Removing verification reduces its effective score to 0.216. Across instance-mutant evaluations, ReqTestAgent kills 492 of 756 mutants, a pooled rate of 0.651; this rate weights instances by their mutant counts. A comparative execution trace shows how explicit domain assertions detect faults missed by the verifier-enhanced baselines. DISCUSSION: Execution feedback provides the principal validity improvement in this controlled setting. The workflow links interpretation records to executable checks, while the evaluation establishes canonical compatibility as a prerequisite for interpreting mutation-based test strength.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Presents ReqTestAgent, an execution-grounded workflow that connects requirement interpretation, testing-knowledge retrieval, test generation, and feedback from canonical execution and mutation testing.
- Evaluated 100 requirement instances formed from 25 Orchid/BigCodeBench tasks, each with lexical, semantic, syntactic, and vagueness variants, using a reference implementation available to the evaluator.
- ReqTestAgent achieves 92% qualified suites and a macro-averaged effective mutation score of 0.678, compared with 0.655–0.670 for the verifier-enhanced baselines, and execution feedback provides the principal validity improvement.
Readers' thoughts
No reader thoughts yet.
Related papers
- Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software RequirementsarXiv · 2026
- TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator EvolutionarXiv · 2026
- AgenTest: Mining Business Rules to Test LLM Agents for Business Logic BugsarXiv · 2026
- Mutation Testing for Multi-Agent WorkflowsarXiv · 2026
- What the Specification Did Not Say: Specification-Oracle Gaps in Test-Graded Coding-Agent BenchmarksarXiv · 2026
- VerifierBench: Benchmarking the Generation of Executable Verifiers for LLM AgentsarXiv · 2026