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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mathews, Noble Saji, Nagappan, Meiyappan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915069956194304
author Mathews, Noble Saji
Nagappan, Meiyappan
author_facet Mathews, Noble Saji
Nagappan, Meiyappan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_14137
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Design choices made by LLM-based test generators prevent them from finding bugs
Mathews, Noble Saji
Nagappan, Meiyappan
Software Engineering
Artificial Intelligence
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.
title Design choices made by LLM-based test generators prevent them from finding bugs
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2412.14137