The Use of GenAI in Graph Based Unit Testing


연구 분야: Verification



학회: International Conference on Information Technology-New Generations


초록

Software testing verifies that the software is free of defects and meets its requirements. This process includes various levels, one of which is unit testing, where developers create test cases alongside their regular code, and use frameworks, such as JUnit for Java, to enable a frequent automated execution of these test cases. However, designing test cases remains a significant challenge. Graph-based testing offers a solution by representing units in the source code as graphs, with nodes representing basic code blocks and edges representing transitions or interactions between these nodes. Additionally, modern Generative AI (GenAI) models, including ChatGPT, Gemini, and Copilot, present new opportunities for enhancing the software testing process. This paper investigates the potential of using GenAI models to automate and improve unit testing, particularly through graph-based methods. Experiments are designed to evaluate these models, assessing their ability to reduce manual effort while improving test coverage, efficiency, and code quality. The results reveal that GenAI models can streamline test generation and execution, but their effectiveness heavily relies on prompt quality and they lack an inherent understanding of program logic. In contrast, traditional graph-based unit testing ensures comprehensive coverage through systematic exploration of control flow paths but is resource-intensive. Therefore, this paper recommends a hybrid approach that combines the automation capabilities of GenAI with the rigor of traditional methods to achieve robust and efficient software testing.


Author Profile
Abubakr S. Masood

Department of Engineering Computing and Mathematical Sciences (ECaMS) College of Aviation Science and Technology (CoAST) Lewis University 1 University Parkway Romeoville IL 60446 USA

Andorra
Author Profile
Mir H. Ali

Department of Engineering Computing and Mathematical Sciences (ECaMS) College of Aviation Science and Technology (CoAST) Lewis University 1 University Parkway Romeoville IL 60446 USA

Andorra
Author Profile
Mohammed W. Amair

Department of Engineering Computing and Mathematical Sciences (ECaMS) College of Aviation Science and Technology (CoAST) Lewis University 1 University Parkway Romeoville IL 60446 USA

Andorra

📄 논문 정보

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

연관 논문 목록 (315건)