Tests as Prompt: A Test-Driven-Development Benchmark for LLM Code Generation
원문 초록
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 highlight 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.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
CoreCodeBench: A Configurable Multi-Scenario Repository-Level Benchmark
PRO-V: An Efficient Program Generation Multi-Agent System for Automatic RTL Verification
Multilingual Multimodal Software Developer for Code Generation
SV-LLM: An Agentic Approach for SoC Security Verification using Large Language Models
Use Property-Based Testing to Bridge LLM Code Generation and Validation
Generating Automotive Code: Large Language Models for Software Development and Verification in Safety-Critical Systems
토론
이 논문과 연결된 포럼 글이 아직 없습니다.