Exploratory Test-Driven Development Study with ChatGPT in Different Scenarios


연구 분야: Software Development



학회: International Conference on Agile Software Development


초록

Generative AI has been rapidly adopted by the software development industry in various ways, offering innovative approaches to transforming requirements into working software. Combining Generative AI with Test-Driven Development (TDD) presents a creative method to accelerate this transformation. However, questions remain about ChatGPT’s readiness for this challenge, including the techniques and best practices required for success and the scenarios where this approach can consistently deliver results. To explore these questions, we designed a study where a group of master’s students performed programming assignments using TDD, first independently and then with the support of ChatGPT. The three assignments represent distinct scenarios: mathematical calculations (function), text processing (class), and system integration (class with dependencies). We performed a qualitative analysis of the submitted code and reports identifying key strategies that significantly influence success rates, such as providing contextual information, separating instructions in prompts following an iterative process, and assisting AI in fixing errors. Among the scenarios, the integration task achieved the highest performance. This study highlights the potential of leveraging Generative AI in TDD for software development and presents a list of effective strategies to maximize its impact. By applying these positive strategies and avoiding identified pitfalls, this research marks a step toward establishing best practices for integrating Generative AI with TDD in software engineering.


Author Profile
Juliano Cesar Pancher

Instituto de Pesquisas Tecnologicas do Estado de São Paulo Av. Prof. Almeida Prado 532 São Paulo SP Brazil

Brazil
Author Profile
Jorge Melegati

Free University of Bozen-Bolzano Piazza Università 1 39100 Bozen-Bolzano Italy

Italy
Author Profile
Eduardo Martins Guerra

Free University of Bozen-Bolzano Piazza Università 1 39100 Bozen-Bolzano Italy

Italy

📄 논문 정보

발행 연도 2025년
인용수 0
출판 국가 Brazil, Italy
사이트 Springer
좋아요 수 0

연관 논문 목록 (426건)