Can Coding Agents Write and Transpile Unit Tests
Gil Pasternak, AJ Langley, Tom Yotam, Ellie Kitanidis
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.
Create a lesson
Related papers
Outcome Over Learning? Evidence from Student Use of AI Code Assistants for Unit Test Writing
Shared title terminology · Daniel Hinbest, Jeremy S. Bradbury, Michael A. Miljanovic
Is This Code Mine? Student Ownership When AI Agents Write the Spec and the Code
Shared title terminology · Gustavo Pinto, Enne Rebeca Silva de Freitas, Danilo Monteiro Ribeiro
Spec-Driven PBT: Deriving Semantic Invariants from Code Specifications for Agentic Property-based Testing
Shared title terminology · Aditya Shukla, Kartik Gupta, Ali Alavi et al.
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminology · Zhiyao Xu, Zhanjie Ding, Hongyao Yu et al.