Research map / Large language models / Agents, code and math
TestEval: Benchmarking Large Language Models for Test Case Generation
Wenhan Wang, Chenyuan Yang, Zhijie Wang, Yuheng Huang, Zhaoyang Chu, Da Song, Lingming Zhang, An Ran Chen, Lei Ma
University of Alberta · University of Illinois, Urbana Champaign · The University of Tokyo · Huazhong University of Science and Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
add two-step chain-of-thought prompting · TestEval targeted line coverage · line coverage: +7.99 Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| give the target line in the prompt (ablation) | GPT-4o · TestEval targeted line coverage | coverage recall: 71.49 -> 80.97 | Improved |
| give the target line in the prompt (ablation) | GPT-3.5-turbo · TestEval targeted line coverage | coverage recall: 69.03 -> 67.76 | Hurt |
| give the target line in the prompt (ablation) | Llama3.1-8b · TestEval targeted line coverage | coverage recall: 59.85 -> 56.49 | Hurt |
| give the target branch in the prompt (ablation) | GPT-4-turbo · TestEval targeted branch coverage | coverage: 65.62 -> 80.77 | Improved |
| give the target branch in the prompt (ablation) | CodeLlama-7b · TestEval targeted branch coverage | coverage: 55.14 -> 50.97 | Hurt |
| give the target branch in the prompt (ablation) | Llama3-8b · TestEval targeted branch coverage | coverage: 58.70 -> 58.39 | No clear effect |
| give the target branch in the prompt (ablation) | 12 of 16 LLMs · TestEval targeted branch coverage (hard branches) | coverage | Improved |
| give the target path in the prompt (ablation) | GPT-4o · TestEval targeted path coverage | path coverage: 58.43 -> 56.67 | Hurt |
| give the target path in the prompt (ablation) | 16 LLMs · TestEval targeted path coverage | path coverage | No clear effect |
| give the target path in the prompt (ablation) | Gemma-7b · TestEval targeted path coverage | path coverage: 33.02 -> 37.11 | Improved |
| add two-step chain-of-thought prompting | Llama3.1-8b · TestEval targeted line coverage | line coverage: +7.99 | Improved |
| add two-step chain-of-thought prompting | GPT-4o-mini · TestEval targeted line coverage | line coverage: -0.22 | Hurt |
Open problems this paper states
- “Benchmark is limited to Python.” → Evaluated on Python or one other language only. (an open problem in execution-based code verification)
- “Dataset is built from online programming problems, which may differ from real-world scenarios.” → Benchmarks are small or simple and far from real software. (an open problem in execution-based code verification)
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark (ICLR 2025 · similarity 0.92)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.89)
- McEval: Massively Multilingual Code Evaluation (ICLR 2025 · similarity 0.89)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.88)
- StackEval: Benchmarking LLMs in Coding Assistance (NeurIPS 2024 · similarity 0.88)
- CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs (ICLR 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.