scimeatlas

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

NAACL 2025Large language models › Agents, code and mathapproach: Execution-based code verificationopen problems in this approach156 citations (OpenAlex)

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 ↗

14measured effects
5improved
3no clear effect
6hurt

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

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 changedWhereMeasuredEffect
give the target line in the prompt (ablation)GPT-4o · TestEval targeted line coveragecoverage recall: 71.49 -> 80.97Improved
give the target line in the prompt (ablation)GPT-3.5-turbo · TestEval targeted line coveragecoverage recall: 69.03 -> 67.76Hurt
give the target line in the prompt (ablation)Llama3.1-8b · TestEval targeted line coveragecoverage recall: 59.85 -> 56.49Hurt
give the target branch in the prompt (ablation)GPT-4-turbo · TestEval targeted branch coveragecoverage: 65.62 -> 80.77Improved
give the target branch in the prompt (ablation)CodeLlama-7b · TestEval targeted branch coveragecoverage: 55.14 -> 50.97Hurt
give the target branch in the prompt (ablation)Llama3-8b · TestEval targeted branch coveragecoverage: 58.70 -> 58.39No clear effect
give the target branch in the prompt (ablation)12 of 16 LLMs · TestEval targeted branch coverage (hard branches)coverageImproved
give the target path in the prompt (ablation)GPT-4o · TestEval targeted path coveragepath coverage: 58.43 -> 56.67Hurt
give the target path in the prompt (ablation)16 LLMs · TestEval targeted path coveragepath coverageNo clear effect
give the target path in the prompt (ablation)Gemma-7b · TestEval targeted path coveragepath coverage: 33.02 -> 37.11Improved
add two-step chain-of-thought promptingLlama3.1-8b · TestEval targeted line coverageline coverage: +7.99Improved
add two-step chain-of-thought promptingGPT-4o-mini · TestEval targeted line coverageline coverage: -0.22Hurt

Open problems this paper states

Open problems in execution-based code verification

Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy