Learning to Generate Unit Tests for Automated Debugging
3 Feb · Archiki Prasad, Elias Stengel-Eskin, Justin Chih-Yao Chen +2 · arXiv:2502.01619
Unit tests (UTs) play an instrumental role in assessing code correctness as well as providing feedback to large language models (LLMs), motivating automated test generation. However, we uncover a trade-off between generating unit test inputs that reveal errors when given a faulty code and correctly predicting the unit test output without access to the gold solution. To address this trade-off, we propose UTGen, which…