Design choices made by LLM-based test generators prevent them from finding bugs

Noble Saji Mathews, Meiyappan Nagappan
12/18/2024
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

There is an increasing amount of research and commercial tools for automated test case generation using Large Language Models (LLMs). This paper critically examines whether recent LLM-based test generation tools, such as Codium CoverAgent and CoverUp, can effectively find bugs or unintentionally validate faulty code. Considering bugs are only exposed by failing test cases, we explore the question: can these tools truly achieve the intended objectives of software testing when their test oracles are designed to pass? Using real human-written buggy code as input, we evaluate these tools, showing how LLM-generated tests can fail to detect bugs and, more alarmingly, how their design can worsen the situation by validating bugs in the generated test suite and rejecting bug-revealing tests. These findings raise important questions about the validity of the design behind LLM-based test generation tools and their impact on software quality and test suite reliability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mathews2024design,
  title  = {Design choices made by LLM-based test generators prevent them from finding bugs},
  author = {Noble Saji Mathews and Meiyappan Nagappan},
  year   = {2024},
  eprint = {2412.14137},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.14137v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.14137.svg)](https://codeofpaper.com/paper/2412.14137)

Discussion