Generative AI to Generate Test Data Generators

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Baudry, Benoit, Etemadi, Khashayar, Fang, Sen, Gamage, Yogya, Liu, Yi, Liu, Yuxin, Monperrus, Martin, Ron, Javier, Silva, André, Tiwari, Deepika
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910500369989632
author Baudry, Benoit
Etemadi, Khashayar
Fang, Sen
Gamage, Yogya
Liu, Yi
Liu, Yuxin
Monperrus, Martin
Ron, Javier
Silva, André
Tiwari, Deepika
author_facet Baudry, Benoit
Etemadi, Khashayar
Fang, Sen
Gamage, Yogya
Liu, Yi
Liu, Yuxin
Monperrus, Martin
Ron, Javier
Silva, André
Tiwari, Deepika
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_17626
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Generative AI to Generate Test Data Generators
Baudry, Benoit
Etemadi, Khashayar
Fang, Sen
Gamage, Yogya
Liu, Yi
Liu, Yuxin
Monperrus, Martin
Ron, Javier
Silva, André
Tiwari, Deepika
Software Engineering
Artificial Intelligence
Machine Learning
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.
title Generative AI to Generate Test Data Generators
topic Software Engineering
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2401.17626