Capgemini Exceller AgentifAI Buildathon Β· Team Osaka Vise
Teams lack sufficient tests, causing regressions. Build an agent that generates unit/integration test cases from code or user stories.
This agent analyzes source code repositories and code snippets to automatically generate, execute, and report on test cases β solving the test-coverage gap without manual effort.
| Capability | Description |
|---|---|
| π€ AI Test Generation | Groq LLM generates pytest-ready test cases from any Python code |
| π Edge Case Detection | Identifies boundary conditions, null inputs, type errors, and more |
| π¦ Repository Analysis | Scans entire repos or ZIP uploads and extracts all testable functions |
| Runs generated tests via pytest and captures pass/fail results | |
| π Coverage Reporting | Computes and visualizes code coverage metrics |
| π CI Integration | GitHub Actions pipeline for automated testing on every push |
| π Interactive Dashboard | Real-time job status, test viewer, and execution logs |
| π Multi-language Detection | Identifies languages and project structure automatically |
Frontend (Next.js + Vercel)
β
FastAPI Backend (Render)
β
BackgroundTasks (async, no Celery/Redis)
β
Groq LLM (llama-3.1-8b-instant)
β
PostgreSQL (Render)
Input (Repo / Code Snippet)
β
Repository Scanner
β
Function Extraction
β
Edge Case Detection
β
LLM Test Generation
β
Pytest Execution
β
Coverage Analysis
β
Dashboard Reporting
Backend Β· FastAPI Β· SQLAlchemy Β· PostgreSQL Β· Groq API Β· Pytest Β· Python 3.11 Β· BackgroundTasks
Frontend Β· Next.js 16 Β· TypeScript Β· TailwindCSS Β· Lucide React
Deployment Β· Vercel (Frontend) Β· Render (Backend + PostgreSQL) Β· GitHub Actions (CI/CD)
Start analysis on a code snippet or repository.
{
"source_type": "code_snippet",
"source_data": "def add(a, b): return a + b"
}Upload a ZIP archive of your repository for full project analysis.
Poll for results β returns generated tests, execution logs, and coverage metrics.
Health check endpoint.
Given:
def divide(a, b):
return a / bThe agent generates:
- β Happy path tests
- β Zero division tests
- β Invalid type tests
- β Boundary tests
- β Negative number tests
Automated_Test_Case_Generator_Agent/
βββ backend/
β βββ app/
β βββ agents/
β β βββ orchestrator.py
β β βββ llm_test_generator.py
β β βββ edge_case_finder.py
β β βββ repo_scanner.py
β β βββ coverage.py
β β βββ test_executor.py
β β βββ code_understanding.py
β βββ api/
β βββ core/
β βββ db/
β βββ models/
β βββ schemas/
β βββ main.py
βββ frontend/
β βββ src/app/
β βββ upload/
β βββ dashboard/
β βββ tests/
β βββ page.tsx
βββ .github/workflows/ci.yml
git clone https://github.com/Aaronrao989/Automated_Test_Case_Generator_Agent.git
cd Automated_Test_Case_Generator_Agent/backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload
# β http://localhost:8000cd ../frontend
npm install
npm run dev
# β http://localhost:3000Backend (.env):
DATABASE_URL=postgresql://...
GROQ_API_KEY=your_groq_key
LLM_PROVIDER=groq
GROQ_MODEL=llama-3.1-8b-instantFrontend (.env.local):
NEXT_PUBLIC_API_URL=https://automated-test-case-generator-agent.onrender.comGitHub Actions runs on every push:
- Backend test suite (
pytest tests/ -v) - Frontend lint + build verification
- Coverage checks
| Criterion | Implementation |
|---|---|
| Test relevance & coverage | LLM generates context-aware tests with pytest fixtures and assertions |
| Correctness | Tests are executed automatically; only passing tests surface in reports |
| Edge case handling | Dedicated edge_case_finder.py agent identifies boundary and failure conditions |
| Maintainability | Generated tests follow pytest conventions with clear naming and docstrings |
| CI integration | GitHub Actions workflow included; API-first design supports any CI tool |
- Advanced coverage heatmaps
- Multi-file dependency analysis
- Java & Go execution support
- Mutation testing
- Real-time streaming updates
- Authentication & team workspaces
- Persistent history dashboard
| Name | Role |
|---|---|
| Aaron Rao | AI Testing & Validation |
| Aditi Karn | System Architecture Lead |
| Aryan Gupta | UI/UX Developer |
| Nitin Chugh | Backend & API Engineer |
| Vidushi Srivastava | Presentation Lead |
MIT Β© Team Osaka Vise β Built for the Capgemini Exceller AgentifAI Buildathon