Abhishekdm1996 /
ai-requirement-to-testcase-generator
AI-powered QA automation workflow that converts business requirements into structured test cases using n8n, Gemini AI, Google Sheets, and JavaScript.
Loading repository data…
git-senpai / repository
AI-Powered Test Case Generator – A full-stack web application that integrates with GitHub and uses AI (OpenAI, Gemini, or Ollama) to automatically generate unit, integration, and edge-case tests for your source code. Supports multiple languages and testing frameworks with a modern, responsive UI for seamless developer experience.
A comprehensive web application that automatically generates test cases for your GitHub repositories using AI. Built with React, Node.js, and multiple AI providers.
git clone <repository-url>
cd test-case-generator
cd backend
npm install
cp env.example .env
Edit .env with your configuration:
# Server Configuration
PORT=5000
NODE_ENV=development
# GitHub OAuth (Required)
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_CALLBACK_URL=http://localhost:5000/auth/github/callback
# Session Configuration
SESSION_SECRET=your_session_secret_key_here
# AI API Configuration (Choose one)
OPENAI_API_KEY=your_openai_api_key
OPENAI_MODEL=gpt-3.5-turbo
# OR Gemini
GEMINI_API_KEY=your_gemini_api_key
# OR Ollama (for local AI)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=codellama
# CORS Configuration
FRONTEND_URL=http://localhost:5173
cd ../frontend
npm install
cp env.example .env
Edit frontend .env:
VITE_API_URL=http://localhost:5000/api
# Terminal 1 - Backend
cd backend
npm run dev
# Terminal 2 - Frontend
cd frontend
npm run dev
Visit http://localhost:5173 to use the application!
http://localhost:5173http://localhost:5000/auth/github/callback.env file.env: OPENAI_API_KEY=your_key_here.env: GEMINI_API_KEY=your_key_hereollama pull codellama.env: OLLAMA_BASE_URL=http://localhost:11434test-case-generator/
├── frontend/ # React application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page components
│ │ ├── contexts/ # React contexts
│ │ └── App.jsx # Main app component
│ └── package.json
├── backend/ # Node.js/Express server
│ ├── src/
│ │ ├── routes/ # API routes
│ │ ├── services/ # Business logic
│ │ ├── middleware/ # Express middleware
│ │ ├── config/ # Configuration
│ │ └── server.js # Main server file
│ └── package.json
└── README.md
GET /api/auth/login - GitHub OAuth loginGET /api/auth/callback - OAuth callbackGET /api/auth/logout - LogoutGET /api/auth/status - Check auth statusGET /api/github/repositories - List user repositoriesGET /api/github/repositories/:owner/:repo/files - List source filesPOST /api/github/repositories/:owner/:repo/files/batch - Get file contentsPOST /api/github/repositories/:owner/:repo/pull-request - Create PRPOST /api/ai/generate-summaries - Generate test summariesPOST /api/ai/generate-code - Generate test codeGET /api/ai/frameworks/:fileExtension - Get supported frameworkscd backend
npm run dev # Start with nodemon
npm start # Start production server
cd frontend
npm run dev # Start Vite dev server
npm run build # Build for production
npm run preview # Preview production build
env.example to .env in both frontend and backendgit checkout -b feature-namegit commit -m 'Add feature'git push origin feature-nameThis project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
Happy Testing! 🧪✨
Selected from shared topics, language and repository description—not editorial ratings.
Abhishekdm1996 /
AI-powered QA automation workflow that converts business requirements into structured test cases using n8n, Gemini AI, Google Sheets, and JavaScript.
amanbhatia1330 /
AI-powered QA agent that generates manual test cases and Playwright automation scripts from user stories — built by Aman Bhatia