跳到正文
arXiv (AI + Vision + Imaging)· Gil Pasternak, AJ Langley, Tom Yotam, Ellie Kitanidis·· 8 天前AI 评分15

编码智能体能否编写并转译单元测试:LLM编码助手测试能力基准评估

Can Coding Agents Write and Transpile Unit Tests

AI 导读

研究基准评估三款主流编码智能体(各搭配前沿原生模型与高推理强度)编写单元测试及跨编程语言转译测试的能力。智能体在传统覆盖率指标上远超人工编写测试套件,但优势并不均衡:测试质量随项目规模增大而急剧下降,且优势主要来自编写了更多测试。智能体测试转译在总体上看似表现强劲,但仍不稳定、不可靠。

正文 · 原文

arXiv:2611.21797v2 Announce Type: replace-cross Abstract: Coding assistants built on Large Language Models (LLMs) have become a staple of modern software development, increasingly trusted to execute workflows and modernize code end-to-end. Much of this trust rests on passing tests, which are often written by the coding agents themselves. In this work, we examine the ability of these agents to both write reliable tests and translate them between programming languages. We benchmark three popular coding agents, each evaluated with a native frontier model and high reasoning effort. Verifying across a broad suite of metrics, we find that coding agents far exceed human written suites on traditional measures of coverage. This advantage, however, is uneven: agent test quality degrades sharply with project size, and much of the advantage lies in a greater number of written tests. We also show that agentic test translation---while seemingly strong in aggregate---remains inconsistent and unreliable.

来源:arXiv (AI + Vision + Imaging) · arxiv.org