We've created an easy-to-use interactive setup script that will configure everything for you!
# Make sure you're in the project directory
cd Java-testgen-suite
# Run the interactive setup
python3 configure_llm.py
# OR
bash setup_llm.shThis interactive script will:
- ✅ Ask for your Spring Boot project path
- ✅ Auto-detect your build tool (Maven/Gradle)
- ✅ Let you choose your LLM provider
- ✅ Configure API keys and model settings
- ✅ Test the configuration
- ✅ Save everything to
.envfile
If you prefer manual setup, copy .env.example to .env and edit the values:
cp .env.example .env
# Edit .env with your preferred editor| Provider | Cost | Speed | Code Quality | Setup Difficulty |
|---|---|---|---|---|
| Google Gemini ⭐ | 💰 Low | ⚡ Fast | ⭐⭐⭐⭐ Good | 🟢 Easy |
| OpenAI GPT | 💰💰 Medium | ⚡⚡ Medium | ⭐⭐⭐⭐⭐ Excellent | 🟢 Easy |
| Anthropic Claude | 💰💰 Medium | ⚡⚡ Medium | ⭐⭐⭐⭐⭐ Excellent | 🟢 Easy |
| Ollama (Local) | 🆓 Free | ⚡⚡⚡ Slow | ⭐⭐⭐ Good | 🟡 Medium |
| Azure OpenAI | 💰💰 Medium | ⚡⚡ Medium | ⭐⭐⭐⭐⭐ Excellent | 🔴 Hard |
⭐ Recommended for beginners: Google Gemini (fast, cheap, good quality)
Once configured, run the full pipeline:
bash run.shOr generate tests for specific targets:
python3 src/llm/test_case_generator.pyConfiguration issues?
- Re-run the setup script:
python3 configure_llm.py - Check your API keys are valid
- Ensure your Spring Boot project path is correct
Build issues?
- Make sure your project builds successfully:
mvn clean compileorgradle build - Check that
src/main/javacontains your Java source files
Need help?
- Check the full README.md for detailed documentation
- Review the PROJECT_DOCUMENTATION.md for technical details