TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark
Not on the map. Why?
Abstract (arXiv)
Code generation models can help improve many common software tasks ranging from code completion to defect prediction. Most of the existing benchmarks for code generation LLMs focus on code authoring or code completion. Surprisingly, there has been far less effort dedicated to benchmarking software testing, despite the strong correlation between well-tested software and effective bug detection. To address this gap, we create and release TestGenEval, a large-scale benchmark to measure test generation performance. Based on SWEBench, TestGenEval comprises 68,647 tests from 1,210 code and test file pairs across 11 well-maintained Python repositories. It covers initial tests authoring, test suite completion, and code coverage improvements. Test authoring simulates the process of a developer writing a test suite from scratch, while test completion mimics the scenario where a developer aims to improve the coverage of an existing test suite. We evaluate several popular models, with sizes ranging from 7B to 405B parameters. Our detailed analysis highlights TestGenEval's contribution to a comprehensive evaluation of test generation performance. In particular, models struggle to generate high-coverage test suites, with the best model, GPT-4o, achieving an average coverage of only 35.2%. This is primarily due to models struggling to reason about execution, and their frequent assertion errors when addressing complex code paths.
Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Oct 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 28; 2026: 19.
49 papers.
Sort:
By area:
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 559
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarioscited by 49
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
- 2025FrontendBench: A Benchmark for Evaluating LLMs on Front-End Development via Automatic Evaluationcited by 17
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
- 2025RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testingcited by 12
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testingcited by 12
37 more
- 2025Learning to Generate Unit Test via Adversarial Reinforcement Learningcited by 11
- 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2025CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verificationcited by 7
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 6
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generationcited by 5
- 2025MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanismscited by 4
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solvingcited by 4
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspectivecited by 4
- 2026Humans are Missing from AI Coding Agent Researchcited by 3
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
- 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Patterncited by 2
- 2025ContractEval: A Benchmark for Evaluating Contract-Satisfying Assertions in Code Generationcited by 2
- 2026RM -RF: Reward Model for Run-Free Unit Test Evaluationcited by 2
- 2025Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challengescited by 1
- 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmarkcited by 1
- 2025LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Frameworkcited by 1
- 2026Planning to Explore: Curiosity-Driven Planning for LLM Test Generationcited by 1
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolutioncited by 1
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reportscited by 1
- 2025A Multi-Agent Framework for Stateful Inference-Time Searchcited by 0
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenancecited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debuggingcited by 0
- 2026From What to How: Bridging User Requirements with Software Development Using Large Language Modelscited by 0
- 2026Program Structure-aware Language Models: Targeted Software Testing beyond Textual Semanticscited by 0
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signalscited by 0
- 2026Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)cited by 0
- 2026Large Language Models at the Intersection of Software Engineering and Software Security:An Evidence-Centered Structured Survey and Research Agendacited by 0
- 2026Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learningcited by 0
- 2026Answer Probing-Guided Search for Diverse Solution Exploration of LLMscited by 0
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositoriescited by 0
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories5 Sep 2026
- 2026Answer Probing-Guided Search for Diverse Solution Exploration of LLMs31 Aug 2026
- 2026Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learning25 Aug 2026
- 2026Large Language Models at the Intersection of Software Engineering and Software Security:An Evidence-Centered Structured Survey and Research Agenda21 Aug 2026
- 2026Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)24 Jul 2026
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports10 Jul 2026
- 2026Humans are Missing from AI Coding Agent Research4 Jul 2026
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution7 May 2026
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signals5 May 2026
- 2026Program Structure-aware Language Models: Targeted Software Testing beyond Textual Semantics20 Apr 2026
- 2026Planning to Explore: Curiosity-Driven Planning for LLM Test Generation6 Apr 2026
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learning16 Mar 2026
37 more
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Tasks18 Feb 2026
- 2026From What to How: Bridging User Requirements with Software Development Using Large Language Models14 Feb 2026
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation11 Feb 2026
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debugging3 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance26 Jan 2026
- 2026RM -RF: Reward Model for Run-Free Unit Test Evaluation19 Jan 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec 2025
- 2025Training Versatile Coding Agents in Synthetic Environments13 Dec 2025
- 2025LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Framework25 Nov 2025
- 2025ContractEval: A Benchmark for Evaluating Contract-Satisfying Assertions in Code Generation14 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective9 Oct 2025
- 2025A Multi-Agent Framework for Stateful Inference-Time Search8 Oct 2025
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration6 Oct 2025
- 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Pattern29 Sep 2025
- 2025Learning to Generate Unit Test via Adversarial Reinforcement Learning28 Aug 2025
- 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmark2 Aug 2025
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functions1 Aug 2025
- 2025textttDroid: A Resource Suite for AI-Generated Code Detection11 Jul 2025
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testing9 Jul 2025
- 2025FrontendBench: A Benchmark for Evaluating LLMs on Front-End Development via Automatic Evaluation16 Jun 2025
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding30 May 2025
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solving29 May 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2025Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challenges23 Apr 2025
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generation18 Mar 2025
- 2025Why Do Multi-Agent LLM Systems Fail?17 Mar 2025
- 2025RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testing10 Mar 2025
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution25 Feb 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
- 2025CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verification12 Feb 2025
- 2025MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanisms10 Feb 2025
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?3 Dec 2024
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning2 Oct 2024
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 559
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarioscited by 49
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
- 2026Humans are Missing from AI Coding Agent Researchcited by 3
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolutioncited by 1
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reportscited by 1
12 most cited of 14 All 14 (JSON)
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories5 Sep 2026
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports10 Jul 2026
- 2026Humans are Missing from AI Coding Agent Research4 Jul 2026
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution7 May 2026
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Tasks18 Feb 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec 2025
- 2025Training Versatile Coding Agents in Synthetic Environments13 Dec 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025A Multi-Agent Framework for Stateful Inference-Time Search8 Oct 2025
- 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration6 Oct 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
12 newest of 14 All 14 (JSON)
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testingcited by 12
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debuggingcited by 0
- 2026Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learningcited by 0
- 2026Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learning25 Aug 2026
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debugging3 Feb 2026
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testing9 Jul 2025
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding30 May 2025
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution25 Feb 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning2 Oct 2024
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2025FrontendBench: A Benchmark for Evaluating LLMs on Front-End Development via Automatic Evaluationcited by 17
- 2025RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testingcited by 12
- 2025Learning to Generate Unit Test via Adversarial Reinforcement Learningcited by 11
- 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2025CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verificationcited by 7
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 6
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generationcited by 5
- 2025MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanismscited by 4
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solvingcited by 4
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspectivecited by 4
12 most cited of 27 All 27 (JSON)
- 2026Answer Probing-Guided Search for Diverse Solution Exploration of LLMs31 Aug 2026
- 2026Large Language Models at the Intersection of Software Engineering and Software Security:An Evidence-Centered Structured Survey and Research Agenda21 Aug 2026
- 2026Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)24 Jul 2026
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signals5 May 2026
- 2026Program Structure-aware Language Models: Targeted Software Testing beyond Textual Semantics20 Apr 2026
- 2026Planning to Explore: Curiosity-Driven Planning for LLM Test Generation6 Apr 2026
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learning16 Mar 2026
- 2026From What to How: Bridging User Requirements with Software Development Using Large Language Models14 Feb 2026
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation11 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance26 Jan 2026
- 2026RM -RF: Reward Model for Run-Free Unit Test Evaluation19 Jan 2026
12 newest of 27 All 27 (JSON)