Inspiration

As students and developers, we often spend a significant amount of time creating test cases and manually validating code solutions. While working on coding problems and competitive programming challenges, we noticed that many bugs occur because developers fail to consider hidden edge cases, boundary conditions, and stress scenarios. Existing platforms execute code but rarely help users generate comprehensive test cases automatically. This inspired us to build AITESTGEN, an intelligent platform that combines Artificial Intelligence with automated code execution to simplify software testing and improve code quality.

What it does

AITESTGEN is an AI-powered platform that automatically generates intelligent test cases from a problem statement and validates user-submitted code. Users can create programming problems, define constraints, provide sample inputs and outputs, and submit source code in various programming languages.

The platform uses OpenAI to analyze the problem and generate: Boundary Test Cases Edge Cases Random Test Cases Stress Test Cases Overflow Test Cases

The generated test cases are then executed using Judge0 API, which compiles and runs the submitted code. The system provides detailed reports including execution results, runtime errors, compilation errors, memory usage, execution time, and estimated time complexity.

How we built it

We developed AITESTGEN using a modern full-stack architecture:

Frontend HTML5

CSS3

JavaScript

Responsive UI Design

Glassmorphism Components

Dark Futuristic Theme

Animated Dashboard

Backend Python

Flask Framework

REST API Architecture

Database MySQL

APIs OpenAI API for intelligent test case generation

Judge0 API for code compilation and execution

The application follows a modular structure with dedicated modules for authentication, AI integration, test generation, complexity analysis, database operations, and execution management.

Challenges we ran into

One of the biggest challenges was generating meaningful test cases instead of simple random inputs. We needed the AI to understand problem constraints and identify hidden edge cases that could break inefficient solutions.

Another challenge was integrating Judge0 API and handling different execution outcomes such as compilation errors, runtime exceptions, time limit issues, and memory constraints. Ensuring smooth communication between the frontend, backend, OpenAI API, Judge0 API, and MySQL database required careful system design and error handling.

We also focused heavily on creating a professional user interface that resembles modern coding platforms while maintaining responsiveness across different devices.

Accomplishments that we're proud of

We successfully developed AITESTGEN, an AI-powered platform that automates test case generation and code validation. We integrated OpenAI API to generate intelligent boundary, edge, random, and stress test cases automatically. We also implemented Judge0 API for real-time code compilation and execution with detailed performance reports. A modern dashboard with analytics, execution history, and project management features was designed to enhance user experience. The platform follows a scalable and modular architecture using Flask and MySQL. Most importantly, we demonstrated how AI can significantly improve software testing efficiency and code quality. \

What we learned

Through this project, we gained practical experience in: Artificial Intelligence Integration Prompt Engineering REST API Development Flask Backend Development MySQL Database Design Code Execution Environments Software Testing Methodologies Full-Stack Web Development System Architecture Design

We also learned how AI can significantly improve traditional software testing workflows by automatically discovering edge cases and generating high-quality test data.

What's next for AI-TEST-GEN

AITESTGEN reduces manual testing effort and improves software reliability by providing intelligent automated validation. The platform can benefit students, competitive programmers, software developers, educators, and technical interview preparation platforms.

Future enhancements include: AI-based bug detection Plagiarism detection Multi-language complexity analysis Cloud deployment Team collaboration features Performance benchmarking Automated code review and optimization suggestions

Share this project:

Updates