mlsanityData to 7 Oct 2026

TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark

arXiv 2410.00752 ↗First posted 1 Oct 2024cs.SEcited by 49

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 28; 2026: 19.

49 papers.

Sort:

By area:

  1. 2025Why Do Multi-Agent LLM Systems Fail?cited by 559
  2. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
  3. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
  4. 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarioscited by 49
  5. 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
  6. 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
  7. 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
  8. 2025FrontendBench: A Benchmark for Evaluating LLMs on Front-End Development via Automatic Evaluationcited by 17
  9. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
  10. 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
  11. 2025RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testingcited by 12
  12. 2025Rethinking Verification for LLM Code Generation: From Generation to Testingcited by 12
37 more
  1. 2025Learning to Generate Unit Test via Adversarial Reinforcement Learningcited by 11
  2. 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
  3. 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
  4. 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
  5. 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
  6. 2025CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verificationcited by 7
  7. 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
  8. 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
  9. 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 6
  10. 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 5
  11. 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generationcited by 5
  12. 2025MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanismscited by 4
  13. 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solvingcited by 4
  14. 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspectivecited by 4
  15. 2026Humans are Missing from AI Coding Agent Researchcited by 3
  16. 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
  17. 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Patterncited by 2
  18. 2025ContractEval: A Benchmark for Evaluating Contract-Satisfying Assertions in Code Generationcited by 2
  19. 2026RM -RF: Reward Model for Run-Free Unit Test Evaluationcited by 2
  20. 2025Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challengescited by 1
  21. 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmarkcited by 1
  22. 2025LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Frameworkcited by 1
  23. 2026Planning to Explore: Curiosity-Driven Planning for LLM Test Generationcited by 1
  24. 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolutioncited by 1
  25. 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reportscited by 1
  26. 2025A Multi-Agent Framework for Stateful Inference-Time Searchcited by 0
  27. 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenancecited by 0
  28. 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
  29. 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debuggingcited by 0
  30. 2026From What to How: Bridging User Requirements with Software Development Using Large Language Modelscited by 0
  31. 2026Program Structure-aware Language Models: Targeted Software Testing beyond Textual Semanticscited by 0
  32. 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signalscited by 0
  33. 2026Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)cited by 0
  34. 2026Large Language Models at the Intersection of Software Engineering and Software Security:An Evidence-Centered Structured Survey and Research Agendacited by 0
  35. 2026Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learningcited by 0
  36. 2026Answer Probing-Guided Search for Diverse Solution Exploration of LLMscited by 0
  37. 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositoriescited by 0