arXiv(opens in a new tab)cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13065

TestSuiteBench: Coding Agents Struggle to Generate Strong Test Suites from Specifications

Kazuki Egashira, Niels Mündler-Sasahara, Mark Niklas Müller, Martin Vechev

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Coding agents are increasingly used to create large software projects. While code-generation benchmarks have scaled accordingly to full applications, test-generation benchmarks remain limited to individual functions or bug fixes. In particular, generating complete test suites for complex software from scratch remains unexplored. To address this gap, we introduce TestSuiteBench, a benchmark of 165 open-source applications, each with a structured and detailed specification of intended behavior, a reference implementation, a reference test suite, and on average 74 mutants. Each mutant is generated from a single requirement of the specification and refined to isolate that behavior: 73% are killed by exactly one reference test and, on average, by only 0.2% of the remaining tests. We find that even frontier coding agents struggle to generate strong test suites given our specifications, achieving mutation scores below 60%, despite their suites being largely valid and 88% of their tests passing on the reference implementation. We observe that generated test suites often lack relevant input combinations and are smaller than reference test suites. Meanwhile, implementations generated for the same specifications pass 82% of the reference tests. These results show agents can build software they cannot verify, a gap that directly limits fully autonomous software development.

1 INTRODUCTION

Coding agents have rapidly progressed from resolving isolated issues (Yang et al., 2024) to being used across the software engineering lifecycle (Mürtz & Müller, 2025; Huang et al., 2026). Increasingly, they re-implemented complex applications from scratch with little human involvement, including a C compiler and a web browser (Carlini, 2026; Lin, 2026). Systems like these took human teams years to build, suggesting that fully autonomous development of genuinely new software is within reach.

However, such autonomous development depends on strong verification that checks the agent's work against the intended behavior (Carlini, 2026). While re-implementations can rely on existing test suites and reference implementations for verification, those are not available for genuinely new software, which initially only has a natural language specification. The agent must thus be able to verify their implementation against this specification by translating it into a strong test suite.

Existing benchmarks do not measure this capability. Code generation benchmarks have scaled from resolving individual issues (Jimenez et al., 2024; Deng et al., 2025) to building complete applications (Ding et al., 2025; Yang et al., 2026; Lu et al., 2025; Vero et al., 2025). Test generation benchmarks, in contrast, remain limited to individual issues (Mündler et al., 2024; Sun et al., 2026), few files (Jain et al., 2025; Wang et al., 2026), or single scenarios (Kogler et al., 2026), while always providing the implementation to test. Building a benchmark closing this gap is challenging: ambiguity, inconsistency, and incompleteness of natural language are a main source of software testing errors (Mustafa et al., 2021), and measuring a test suite's strength requires faults that violate specific requirements, which generic rule-based mutations cannot guarantee (Jia & Harman, 2011).

Our work We introduce TESTSUITEBENCH, a benchmark of 165 open-source applications in which agents must write a complete test suite given only a natural-language specification (Figure 1).

Figure

Figure 1: TESTSUITEBENCH: One instance consists of a specification S, a test suite T asserting its requirements, and a set of mutants M that break these requirements in targeted ways. An agent is tasked with generating a full test suite based solely on the natural-language specification S. We then evaluate the Validity Score V, the fraction of tests that pass on the reference implementation, and the Mutation Score M, the fraction of mutants killed by the generated test suite.

We derive each specification from the application’s reference test suite, so that it describes every tested behavior, and iteratively refine it to remove ambiguities and contradictions. To measure a suite’s strength, we construct on average 74 mutants per application, each violating a single requirement. We refine mutants to isolate the violated requirement, with 73% being killed by exactly one reference test. We report a generated suite’s validity score V as the fraction of tests that pass on the reference implementation and its strength as the mutation score M, the fraction of mutants killed by valid tests; since the reference suite kills every mutant, a perfect score is attainable by construction.

We evaluate coding agents with six recent frontier models and find that they struggle to write strong test suites: even the best agent's suites kill only 55% of mutants, and four of the six agents stay below 40%. This is not due to a lack of understanding of the specification: on average, 88% of generated tests are valid, and implementations built by the same agents from the same specifications pass up to 93% of the reference tests. Even when given the reference executable in addition to the specification, mutation scores remain unchanged, indicating that the bottleneck lies in test design rather than in the specification's precision. Indeed, generated suites are often too small and miss the input combinations needed to expose violated requirements.

These results reveal a critical gap: agents can build software they cannot verify. Until they can turn specifications into strong test suites, fully autonomous development of new software remains out of reach; TESTSUITEBENCH measures progress toward this goal.

Key Contributions of our work are:

• TESTSUITEBENCH, a benchmark for repository-scale test suite generation from natural-language specifications, comprising 165 applications with detailed specifications, reference implementations, reference test suites, and requirement-targeted mutants (Section 2).

• A scalable pipeline that derives detailed specifications from existing test suites, refines them by attributing agent failures to specification defects, and generates mutants that each violate a single requirement, enabling the benchmark to be extended to new applications (Section 2).

• An extensive evaluation of 6 coding agents, revealing that they can implement specifications they cannot test (Section 3).