AI Test Case Generation: Code to Cloud Journey
Suneet Malhotra
Dec 30, 2025
AI-Driven Test Case Generation: My Journey from Code to Cloud
Tech Stack: Cursor (AI) + React + Netlify Functions + Gemini/Ollama + Cloudflare
TL;DR: Key Takeaways
- Open-Source Demo: Built AI test case generator as a personal research project from concept to deployment
- Hybrid AI Architecture: Gemini (cloud) + Ollama (local) for flexible AI processing
- Serverless Infrastructure: Netlify Functions + Cloudflare for scalable deployment
- Architecture Deep Dive: Complete walkthrough of system design and challenges
- Open Source: Full codebase available on GitHub for engineering teams
The Challenge: Designing Tests, Faster
As a Quality Engineering leader, I know the pain: crafting robust test cases from dense requirement documents is crucial, yet time-consuming. My mission was to build AI Test Case Generator, an app that turns requirements into structured test suites instantly.
The journey wasn't just about the AI; it was about building a resilient, scalable platform from the ground up, tackling deployment complexities along the way.
The Architecture: From Conflict to Clarity
Initially, managing my professional portfolio alongside this powerful AI tool led to "nested repo" deployment headaches. My solution was a strategic migration to Netlify, simplifying routing and leveraging its powerful serverless capabilities.
Here's the breakdown of the tech that made it happen:
1. AI-Powered Development: Cursor
My development partner for this entire project was Cursor, an AI-native IDE. It allowed me to rapidly refactor code, streamline deployment processes, and focus on the core AI logic rather than getting bogged down in boilerplate or debugging configuration conflicts. Cursor was key to accelerating development and maintaining a lean codebase.
2. Flexible AI Engines: Gemini 1.5 Flash & Ollama
For the intelligence layer, I wanted flexibility:
- Google Gemini 1.5 Flash: Used for its immense context window and speed, ideal for processing large PDF requirements documents and generating comprehensive test cases quickly in the cloud.
- Ollama (Local AI): For developers and testers who prefer privacy or local control, I designed the backend to seamlessly integrate with Ollama. This allows users to leverage powerful open-source LLMs running directly on their machine, providing an alternative for offline or sensitive data processing.
3. Serverless Backend: Netlify Functions
The brain of the operation runs on Netlify Functions. These lightweight, serverless APIs handle:
- PDF Parsing: Extracting text from uploaded documents.
- AI Orchestration: Communicating with both Gemini and Ollama.
- Security: Implementing IP-based Rate Limiting directly in the function code to protect against abuse and manage API costs.
4. Global Reach & Security: Cloudflare
My domain and overall security posture are managed by Cloudflare. It provides robust DNS, SSL, and network edge caching, ensuring the application is fast, secure, and globally accessible.
5. Frontend: React & Tailwind CSS
The user interface is built with React and styled with Tailwind CSS, delivering a responsive, intuitive experience for quality engineers.
The Journey Visualized
The architecture follows a clean, serverless flow. Here's how it works:
All wrapped in Cloudflare for global distribution and security.
Why This Matters for QE Leaders
This project is more than just an app; it's a blueprint for modern quality engineering. It demonstrates how a strategic blend of AI development tools, flexible AI models, and robust serverless architecture can transform how we approach test design, driving efficiency and innovation.
Experience it yourself: testcase-ai.suneetmalhotra.com
Open Source & Community
I'm a firm believer in the "Quality First" community. I've made the entire codebase for this generator—including the Netlify Function logic and the Gemini/Ollama orchestration—available on GitHub. Feel free to fork it, contribute, or use it as a template for your own AI projects.
GitHub Repository: SuneetMalhotra/ai-test-case-generator
About the Author: Suneet Malhotra is an AI-Driven Quality Engineering Leader with 20+ years of experience in scaling complex platforms.
Share this post
You Might Also Like
Building Shape Popper: A Kid-Friendly iOS Game with SwiftUI & Claude Code
Step-by-step guide on building Shape Popper, a high-performance SwiftUI game for kids using Claude Code. Learn about Canvas rendering, MVVM architecture, and iOS accessibility for ages 4-6.
Engineering LeadershipBuild a Project Management App with Claude Code in 15 Minutes
A step-by-step guide to building Flowstate with Claude Code, Next.js, and Supabase. Learn how to use /frontend-design for a custom Editorial Brutalism aesthetic and deploy a fully functional project management app in 15 minutes.
Agentic AIEverything in My Context Window Is an Instruction
This routine reads the open web, then commits to a live site with no human in the loop. Those two facts sit in the same context window, and the model has no way to tell them apart.
Quantitative TradingThe Edge I Assume Is Already Decaying
Wall Street spent this week arguing that AI is cutting the useful life of a trading edge from seven years to eighteen months. If that is even half right, it changes what a signal is worth.
Latest Blog Posts
Everything in My Context Window Is an Instruction
This routine reads the open web, then commits to a live site with no human in the loop. Those two facts sit in the same context window, and the model has no way to tell them apart.
The Edge I Assume Is Already Decaying
Wall Street spent this week arguing that AI is cutting the useful life of a trading edge from seven years to eighteen months. If that is even half right, it changes what a signal is worth.
The If Statement My Audit Never Read
On May 20 I published a rule for which steps of a routine are safe to run twice, and put my repo pull in the safest bucket. On July 9 that step failed. It never ran.
Related Tools & Demos
Multi-Model LLM Harness
One interface to call any AI model — capability routing, fallback chains, budgets, circuit breakers, and a quality feedback loop. A practical architecture pattern write-up.
Automated Trading System
Multi-engine trading platform with real-time risk management, regime-based strategy selection, and automated order execution.
View Source Code →Personal Health Analytics
Multi-modal health data platform integrating wearables, lab results, and lifestyle tracking with predictive habit modeling.
View Source Code →
Stay in the Loop
Get weekly insights on AI-driven QA, engineering leadership, and automation strategies.
No spam, ever. Unsubscribe anytime.