# Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software Requirements

DevFeed: [Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software Requirements](<https://devfeed.tech/articles/benchmarking-llm-agents-for-behaviorally-adequate-test-generation-from-software-requirements-103159.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36584>)

Author: Binhang Qi, Yiming Liu, Yun Lin, Yangjie Zhou, Hailong Sun, Jin Song Dong

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Dataset development](<https://devfeed.tech/topics/dataset-development.md>), [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [codex](<https://devfeed.tech/tags/codex.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [execution](<https://devfeed.tech/tags/execution.md>), [file](<https://devfeed.tech/tags/file.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [generate](<https://devfeed.tech/tags/generate.md>), [generation](<https://devfeed.tech/tags/generation.md>), [harness](<https://devfeed.tech/tags/harness.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [software](<https://devfeed.tech/tags/software.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

Req2Test-Bench evaluates whether agents can generate tests from Gherkin requirements and target interfaces when behavior implementations are withheld. It contains 5,086 execution-validated instances from eight open-source projects across five languages and four BDD frameworks. Adequacy is measured strictly by kill-completeness: a generated test must kill every mutant killed by the developer-written test. Across eight agent-model-reasoning configurations, the best, Codex with DeepSeek-V4.1-Flash, generated passing tests for 82.8% of instances, but only 33.8% were behaviorally adequate. The authors report sharply diminishing adequacy gains as agent scale and generation cost increase, and identify ambiguous setup and implicit expected outcomes in underspecified requirements as sources of information gaps. They suggest requirement-grounded harnesses to steer agent nondeterminism as a possible improvement.

## Source excerpt

arXiv:2610.36584v1 Announce Type: cross Abstract: As large language model agents increasingly compile natural-language requirements into repository-level code, requirement-to-test generation grows in importance to provide validation constraints (or harness) to guide code generation. Yet it remains unclear whether current agents can generate tests that validate the required behavior when the implementation of that behavior is withheld. Existing test-generation benchmarks mostly focus on white-box testing, whereas the requirement--test-related study usually requires evaluation on semantic alignment between the given documents and the generated tests. We introduce Req2Test-Bench, a benchmark containing 5,086 execution-validated instances recovered from developer-authored behavior-driven development (BDD) artifacts in 8 open-source projects, spanning 5 programming languages and 4 BDD frameworks. Each instance pairs a natural-language requirement in Gherkin with its developer-written Test Implementation. Given the requirement, target interfaces of the required behavior, an agent must generate a complete, potentially multi-file Test Implementation. Evaluation of 8 agent--model--reasoning configurations reveals a substantial gap between execution success and behavioral adequacy, which is measured strictly as kill-completeness: a kill-complete test kills every mutant that the ground-truth test kills. The best-performing configuration, Codex with DeepSeek-V4.1-Flash, produces passing tests for 82.8% of instances, yet only 33.8% are behaviorally adequate. We find that (1) scaling up agents yields sharply diminishing returns in behavioral adequacy relative to generation cost; (2) under-specified requirements cause the information gap, including ambiguous setup and implicit expected outcomes; and (3) requirement-grounded harnesses that steer agent non-determinism offer a promising direction for improvement.