Generative AI to Generate Test Data Generators

Benoit Baudry, Khashayar Etemadi, Sen Fang, Yogya Gamage, Yi Liu +5 more
1/31/2024
cs.SEcs.AIcs.LG

No official code found. Best implementation: ASSERT-KTH/lollm (5 stars, last commit 2024-09-15).

Abstract

Generating fake data is an essential dimension of modern software testing, as demonstrated by the number and significance of data faking libraries. Yet, developers of faking libraries cannot keep up with the wide range of data to be generated for different natural languages and domains. In this paper, we assess the ability of generative AI for generating test data in different domains. We design three types of prompts for Large Language Models (LLMs), which perform test data generation tasks at different levels of integrability: 1) raw test data generation, 2) synthesizing programs in a specific language that generate useful test data, and 3) producing programs that use state-of-the-art faker libraries. We evaluate our approach by prompting LLMs to generate test data for 11 domains. The results show that LLMs can successfully generate realistic test data generators in a wide range of domains at all three levels of integrability.

View on arXivView PDF

Code Implementations(1)

ASSERT-KTH/lollmCommunity100%

Generative AI to Generate Test Data Generators https://doi.org/10.1109/MS.2024.3418570

50Shell, PythonSep 29, 20232 years ago

Similar Papers

Cite this paper

@article{baudry2024generative,
  title  = {Generative AI to Generate Test Data Generators},
  author = {Benoit Baudry and Khashayar Etemadi and Sen Fang and Yogya Gamage and Yi Liu and Yuxin Liu and Martin Monperrus and Javier Ron and André Silva and Deepika Tiwari},
  year   = {2024},
  eprint = {2401.17626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.17626v2}
}

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/2401.17626.svg)](https://codeofpaper.com/paper/2401.17626)

Discussion