A Multi-Study Evaluation into Generative Artificial Intelligence for Test-Driven Development

Test-Driven Development (TDD) is an agile practice that alternates writing failing (unit) tests (Red phase), implementing production code that makes failing tests pass (Green phase), and improving the code through the Refactor phase. TDD promises better external and internal quality of developed software and developers’ productivity, yet it remains difficult to practice. In prior work, some of the authors of this paper proposed integrating Large Language Models (LLMs) into the workflow of TDD, specifically during the Green phase by generating production code that makes failing (unit) tests pass. A supporting tool named GAI4-TDD (Generative Artificial Intelligence for Test-Driven Development) was also proposed to operationalize the integration of LLMs into the workflow of TDD for embedded systems development. In this paper, we validate this integration through a multi-study evaluation that is not limited to embedded systems development and comprises: (i) a laboratory study; (ii) a controlled experiment with graduate students in Computer Science/Engineering; and (iii) three industry-based qualitative studies. The results show that GAI4-TDD (i) makes failing tests pass with a success rate of about 90% on the first attempt; (ii) improves external/internal quality of software and students’ productivity; and (iii) professionals are generally-positive, although some barriers to GAI4-TDD adoption emerged.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-08-27
DOI
https://doi.org/10.1145/3828553
Primary Topic
Advanced Statistical Modeling Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Multi-Study Evaluation into Generative Artificial Intelligence for Test-Driven Development

Valentina Lenarduzzi, Pietro Cassieri, Giuseppe Scanniello, Simone Romano et al.
ACM Transactions on Software Engineering and Methodology
Advanced Statistical Modeling Techniques
article

A Multi-Study Evaluation into Generative Artificial Intelligence for Test-Driven Development

Valentina Lenarduzzi, Pietro Cassieri, Giuseppe Scanniello, Simone Romano, Davide Taibi
article en

Abstract

Test-Driven Development (TDD) is an agile practice that alternates writing failing (unit) tests (Red phase), implementing production code that makes failing tests pass (Green phase), and improving the code through the Refactor phase. TDD promises better external and internal quality of developed software and developers’ productivity, yet it remains difficult to practice. In prior work, some of the authors of this paper proposed integrating Large Language Models (LLMs) into the workflow of TDD, specifically during the Green phase by generating production code that makes failing (unit) tests pass. A supporting tool named GAI4-TDD (Generative Artificial Intelligence for Test-Driven Development) was also proposed to operationalize the integration of LLMs into the workflow of TDD for embedded systems development. In this paper, we validate this integration through a multi-study evaluation that is not limited to embedded systems development and comprises: (i) a laboratory study; (ii) a controlled experiment with graduate students in Computer Science/Engineering; and (iii) three industry-based qualitative studies. The results show that GAI4-TDD (i) makes failing tests pass with a success rate of about 90% on the first attempt; (ii) improves external/internal quality of software and students’ productivity; and (iii) professionals are generally-positive, although some barriers to GAI4-TDD adoption emerged.

ACM Transactions on Software Engineering and Methodology
University of Salerno (IT), University of Southern Denmark (DK)
Openalex Percentile: Top 35%
Advanced Statistical Modeling Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.