AI-powered repository testing with analysis, generation, execution, debugging, reporting, and deployment-friendly automation.
AI Test Engineering is a FastAPI application that:
- analyzes uploaded repositories
- detects supported source files
- generates tests with heuristic or OpenAI-backed generation
- executes them with real runners
- retries more safely when failures occur
- stores reports and user-scoped run history
- exposes a visual dashboard for workflows, results, and profile data
It is built to stay product-facing while still being testable, deployable, and automation-friendly.
| Area | What it does |
|---|---|
Overview |
upload a repo, choose a model, run the orchestration flow |
How It Works |
explains the planner, generator, executor, and debugger pipeline |
What To Do |
suggests next actions after a run |
Results |
shows saved runs and report details |
Profile |
user info, run stats, and account-linked workspace history |
flowchart LR
A["Upload Repository"] --> B["Analyze Source Files"]
B --> C["Create Test Plan"]
C --> D["Generate Tests"]
D --> E["Execute Tests"]
E --> F{"Pass?"}
F -- "Yes" --> G["Persist Report"]
F -- "No" --> H["Debugger Review"]
H --> I["Safer Retry Strategy"]
I --> D
G --> J["Dashboard + Saved Runs"]
- Python, JavaScript, and TypeScript repository analysis
- AI model selection for test generation
- heuristic fallback when OpenAI is unavailable
- Google OAuth 2.0 sign-in
- DB-backed sessions and saved runs
- production deployment on Vercel
- isolated automated test architecture
| Language | Analysis | Generation | Execution |
|---|---|---|---|
| Python | Yes | Yes | pytest |
| JavaScript | Yes | Yes | node --test |
| TypeScript | Yes | Yes | project tooling dependent |
| Other code uploads | Accepted | identified | reported as not yet executable |
You can now install this tool as a Python package. This will provide the ai-test-engineer command in your terminal.
# Clone the repository
git clone https://github.com/nivas4506/ai-test-engineering-codex-hackathon.git
cd ai-test-engineering-codex-hackathon
# (Optional) Create a virtual environment
python -m venv .venv
.venv\Scripts\Activate.ps1
# Install the package in editable mode
pip install -e .Once installed, you can use the ai-test-engineer command to manage the application:
# Initialize the database and workspace
ai-test-engineer init
# Start the server (default: http://127.0.0.1:8000)
ai-test-engineer run
# Start in development mode (with auto-reload)
ai-test-engineer run --dev
# Run on a specific host/port
ai-test-engineer run --host 0.0.0.0 --port 9000If you prefer running without installing the package:
pip install -r requirements.txt
uvicorn app.main:app --reloadOpen locally:
http://127.0.0.1:8000/http://127.0.0.1:8000/login
$env:OPENAI_API_KEY="your_api_key_here"
$env:OPENAI_MODEL="gpt-5-mini"
$env:OPENAI_REASONING_EFFORT="low"
$env:GOOGLE_CLIENT_ID="your_google_client_id.apps.googleusercontent.com"
$env:DATABASE_URL="sqlite:///./workspace/app.db"Production should use a real external database, not SQLite.
The testing architecture is external and non-intrusive. It does not alter runtime UI, endpoints, request shapes, or business logic.
automation/
run_tests.py
tests/
conftest.py
unit/
integration/
e2e/
pytest
pytest -m unit
pytest -m integration
pytest -m e2e
python automation\run_tests.pyautomation/reports/junit.xmlautomation/reports/coverage.xmlautomation/reports/htmlcov/automation/reports/summary.jsonautomation/reports/summary.md
| Pipeline | Purpose |
|---|---|
.github/workflows/ci.yml |
runs automated tests and uploads reports |
.github/workflows/vercel-preview.yml |
preview deployment flow |
.github/workflows/vercel-production.yml |
production deployment flow |
Jenkinsfile |
Jenkins-compatible test runner pipeline |
GitHub Actions secrets:
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID
Recommended app secrets:
OPENAI_API_KEYDATABASE_URLGOOGLE_CLIENT_ID
Google Cloud Console values:
- Authorized JavaScript origins:
http://127.0.0.1:8000http://localhost:8000https://ai-test-engineering-codex-hackathon.vercel.app
- Authorized redirect URIs:
- none required for the current popup-based flow
Latest automated run:
- Test status:
PASS - Total tests:
30 - Coverage:
70% - Current notable warning: deprecation warnings around
datetime.utcnow()
- add browser-driven UI verification for the full authenticated flow
- add more JavaScript and TypeScript execution fixtures
- add persistence-layer tests around saved runs and upload restoration
- add targeted coverage for error branches in API routes
Open project tree
app/
api/
core/
db/
models/
services/
static/
templates/
utils/
automation/
tests/
.github/workflows/
Jenkinsfile
vercel.json
requirements.txt
pytest.ini
This repo intentionally keeps:
- product UI separate from test architecture
- runtime logic separate from automation logic
- deployment concerns separate from repository analysis/generation logic
- local and CI/CD test execution aligned through the same automation runner
Screen.Recording.2026-04-05.230435.mp4
Active prototype with live deployment, authenticated dashboard, AI model selection, externalized testing architecture, durable upload recovery, and CI-ready execution pipeline.
For the fastest setup experience, use the integrated CLI tool:
pip install -e .
ai-test-engineer init
ai-test-engineer run