mlsanityData to 24 Nov 2026

Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software Requirements

arXiv 2610.36584 ↗Submitted 27 Oct 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 16 of its 39 references that are in the map. Submitted 27 Oct 2026.

Builds on

16 of 39 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspective14 Feb
  2. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  3. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun

Other references · 13

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  2. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 220
  3. 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 59
  4. 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 38
  5. 2022Methods2Test: A dataset of focal methods mapped to test casescited by 11
  6. 2025E2Edev: Benchmarking Large Language Models in End-to-End Software Development Taskcited by 8
  7. 2024Feature-Driven End-To-End Test Generationcited by 7
  8. 2025Acceptance Test Generation with Large Language Models: An Industrial Case Studycited by 4
  9. 2021CiRA: A Tool for the Automatic Detection of Causal Relationships in Requirements Artifactscited by 3
  10. 2025Generating Project-Specific Test Cases with Requirement Validation Intentioncited by 3
  11. 2025Streamlining Acceptance Test Generation for Mobile Applications Through Large Language Models: An Industrial Case Studycited by 2
  12. 2026DiffTestGen: Change-Directed LLM-Based Testing for Exposing Behavioral Differencescited by 1
1 more
  1. 2026Bridging Behavior and Implementation: Automated Java Glue Code Generation for Behavior-Driven Developmentcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents
  2. 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation
  3. 2025Benchmarking and Studying the LLM-based Agent System in End-to-End Software Development
  4. 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories
  5. 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications
  6. 2026TDD-Agent: Test-Driven Reasoning for Code Generation
  7. 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregation
  8. 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generation