TestPrism: Rethinking Test Evaluation Beyond a Single Reference

Han Li, Lingxiang Hu, Jiacheng Huang, Ziqian Jiang, Jingkai Luo, Wei Gao, Yunfan Tan, Zun Wang and 1 others

Nanjing University · Hong Kong Polytechnic University · Tencent

Published October 8, 2026 · on the feed October 9, 2026 · ▲ 37 · arXiv 2610.12289

Code & softwareAgents arXiv ↗Hugging Face ↗

The abstract

Large language model (LLM) coding agents have advanced test generation across diverse programming tasks. However, the common practice of evaluating tests against a single reference solution overlooks alternative valid implementations and can overstate test quality. We introduce TestPrism, comprising 300 test tasks from 17 sources and 3000 candidate implementations, evenly split between valid and invalid solutions. Its primary metric, Joint Success Function, requires the generated tests to fail on the initial program state, accept every valid candidate, and reject every invalid candidate. Across fourteen baseline coding agent configurations, Joint Success Function reaches only 28.00%, whereas single reference success reaches 59.67%. Our analysis reveals missed behaviors, unsupported assertions, and faulty test construction. To address these weaknesses, we introduce TestHelix, which combines heterogeneous synthesis of test and repair pairs with peer cross validation and recursive self improvement (RSI). Across two models, TestHelix improves Joint Success Function by 8.67 to 9.00 percentage points over the native harness comparators in the TestHelix evaluation

The Brief

2:07

A short podcast summary of the paper. Written and voiced by AI.

Transcript

TestPrism. Rethinking Test Evaluation Beyond a Single Reference. By Han Li and eight others, from Nanjing University, the Hong Kong Polytechnic University, and one other institution. Published on the eighth of October.

Coding agents built on large language models have become capable test writers across many kinds of programming task. The usual way to grade their tests is to run them against a single reference solution. That practice overlooks a basic fact: a problem can have many valid implementations. A test that passes the one reference may still wrongly reject a correct alternative, and grading against one solution can therefore overstate test quality.

TestPrism measures tests against a population of programs instead of one. Its primary metric, the Joint Success Function, asks three things of a generated test suite. It must fail on the initial program state. It must accept every valid candidate implementation. And it must reject every invalid one. Only a suite that does all three counts as a success.

The benchmark holds three hundred test tasks drawn from seventeen sources, with three thousand candidate implementations behind them, split evenly between valid and invalid solutions.

Across fourteen baseline configurations of coding agents, the Joint Success Function reaches only twenty-eight percent. Measured the traditional way, against a single reference, the same agents succeed fifty-nine point six seven percent of the time. The gap between those two numbers is the overstatement the authors set out to expose.

Their analysis traces the failures to three weaknesses: missed behaviours, unsupported assertions, and faulty test construction. In response they introduce TestHelix, which combines heterogeneous synthesis of test and repair pairs with peer cross validation and recursive self improvement. Across two models, TestHelix raises the Joint Success Function by between eight point six seven and nine percentage points over the native harness comparators.

A single reference answers whether a test agrees with one program. TestPrism asks whether a test actually separates correct code from incorrect code, and by that stricter standard the measured quality of agent-written tests roughly halves.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.