Get Free Shipping on orders over $79
Tests as Prompt : A Test-Driven-Development Benchmark  for LLM Code Generation - Yi Cui

Tests as Prompt

A Test-Driven-Development Benchmark for LLM Code Generation

By: Yi Cui

Paperback | 21 July 2025

At a Glance

Paperback


$122.75

or 4 interest-free payments of $30.69 with

 or 

Ships in 10 to 15 business days

We introduce WebApp1K, a novel benchmark for evaluating large language models (LLMs) in test driven development (TDD) tasks, where test cases serve as both prompt and verification for code generation. Unlike traditional approaches relying on natural language prompts, our benchmark emphasizes the ability of LLMs to interpret and implement functionality directly from test cases, reflecting real-world software development practices. Comprising 1000 diverse challenges across 20 application domains, the benchmark evaluates LLMs on their ability to generate compact, functional code under the constraints of context length and multi-feature complexity. Our findings high light instruction following and in-context learning as critical capabilities for TDD success, surpassing the importance of general coding proficiency or pretraining knowledge. Through comprehensive evaluation of 19 frontier models, we reveal performance bottlenecks, such as instruction loss in long prompts, and provide a detailed error analysis spanning multiple root causes. This work underscores the practical value of TDD-specific benchmarks and lays the foundation for advancing LLM capabilities in rigorous, application-driven coding scenarios.

More in Computer Science

Wise AI : Using powerful technology in a deeply human way - Daniel Sih
Python & AI For Dummies - John C. Shovic

RRP $57.95

$44.75

23%
OFF
Co-Intelligence : Living and Working with AI - Ethan Mollick

RRP $36.99

$29.75

20%
OFF
Microsoft 365 Excel For Dummies : For Dummies (Computer/Tech) - David H. Ringstrom
Information Design : Design for Engagement - Yvonne  Eriksson
Democratizing AI : Critical Powers - Annette Zimmermann

This product is categorised by