TestSuiteBench: Coding Agents Struggle to Generate Strong Test Suites from Specifications
- Source
- arxiv.org
- Author
- Kazuki Egashira, Niels M\"undler-Sasahara, Mark Niklas M\"uller, Martin Vechev
- Date
TestSuiteBench, from Kazuki Egashira, Martin Vechev and colleagues, asks a different question from most coding benchmarks: can an agent write tests strong enough to catch bugs from a specification alone? Each generated suite is run against mutated versions of the reference implementation, and the score is the share of mutants it detects. The gap the authors report is the important part. Most of the agents' tests were valid, with 88% passing on the correct implementation, yet the suites still missed more than 40% of injected faults. A suite that is green and plausible-looking can therefore be weak evidence that code is correct. If agents write both your code and your tests, measure test strength directly, for example with mutation testing, before treating those tests as a safety net for later agent changes.

Context
Tests that pass on working software can still miss broken behavior. TestSuiteBench measures that gap across 165 applications by asking coding agents to generate tests from detailed specifications. Researchers then run those tests against deliberately altered implementations, each designed to violate a requirement.
The strongest tested detected 55.5% of those faulty variants, even though 96.1% of its generated tests passed on the reference implementations. Passing establishes that a test accepts expected behavior; detecting a faulty variant establishes that it rejects a particular defect. The exposes a substantial gap between those two abilities.
- Each of the 165 apps ships with a structured specification, a reference implementation, a reference test suite and about 74 mutants on average. Each mutant isolates one requirement: 73% are killed by exactly one reference test, so a missed mutant flags an untested requirement.
- The authors find agent-generated suites are smaller than the reference suites and often lack relevant input combinations, which is how suites can be largely valid on the reference implementation yet still score below 60% on mutation kills.
- Implementations generated from the same specifications pass 82% of the reference tests. The authors conclude agents can build software they cannot verify, a gap they say directly limits fully autonomous software development.
articleGrounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test GenerationMichele Tufano, James McClure, Jos\'e Cambronero, Runxiang Cheng, Sherry Y. Shi, Renyao Wei, Dorothy Chen, Franjo Ivan\v{c}i\'c, Livio Dalloro, Pat Rondon
articleWebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution HarnessYun-Yun Tsai, Yuning Mao, Shiqi Wang, Junfeng Yang, Sinong Wang
articleCheckerBench: Can Long-Horizon Agents Synthesize Static-Analysis Checkers?Hang He, Li Wang, Hao Chen, Yuchen Shao, Yuling Shi, Lisheng Wang, Peiyang Liu, Goose Lin, Zaiyuan Wang, Haiying Sun, Ting Su, Chengcheng Wan