AI-Powered Automated Unit Test Generation for Spring Boot Projects
This master thesis explores the application of Large Language Models (LLMs) in automated unit test generation for Java Spring Boot applications. The research demonstrates how ChatGPT can be integrated into Maven build processes to automatically analyze code coverage and generate unit tests, significantly improving testing efficiency.
OpenAI GPT-3.5/GPT-4 with custom prompt engineering for Java test generation
Custom Maven plugin for seamless Spring Boot project integration
JaCoCo integration for intelligent test coverage analysis and reporting
Azure-hosted private GPT instance ensuring data privacy and compliance
Comprehensive analysis of existing automated testing tools and LLM applications in software engineering, identifying gaps in Java Spring Boot testing automation.
Applied systematic DSR approach with relevance, rigor, and design cycles to develop an innovative artifact addressing real-world testing challenges.
Systematic development and evaluation of prompt strategies using Zero-Shot, One-Shot, and Few-Shot learning techniques for optimal test generation.
Built UTestGenLLM plugin with automated JaCoCo integration, intelligent class analysis, and seamless LLM communication for production environments.
Multi-project validation with quantitative metrics and expert evaluation, demonstrating significant improvements in test coverage and development efficiency.
Automated JaCoCo integration analyzes existing test coverage, identifies untested classes and methods, and prioritizes test generation based on coverage gaps.
Advanced prompt engineering with context-aware test case generation using GPT-3.5/GPT-4, producing executable JUnit 5 tests with proper imports and structure.
Seamless integration into Maven build phases with configurable execution timing, automated error handling, and build process continuity.
Private Azure-hosted GPT instances ensure sensitive code remains secure, with configurable API endpoints and comprehensive privacy compliance.