TestBrain  by MangoFisher

AI-powered web platform for intelligent test case generation and management

Created 1 year ago
254 stars

Top 99.0% on SourcePulse

GitHubView on GitHub
Project Summary

TestBrain is an AI-powered web platform designed to automate and enhance software testing workflows. It addresses the need for efficient generation, review, and knowledge management of test cases, particularly for functional, interface, and code-level testing. Targeting testing teams and engineers, it aims to serve as an "AI Testing Assistant," boosting productivity and test quality through intelligent automation and context-aware knowledge retrieval.

How It Works

TestBrain utilizes a Django backend integrated with LangChain to orchestrate multiple specialized AI agents. This multi-agent approach allows dedicated models and prompts for distinct tasks like test case generation, review, PRD analysis, interface testing, and Java code analysis. A key differentiator is its RAG (Retrieval-Augmented Generation) capability, leveraging Milvus as a vector database and BGEM3 for embeddings. This enables efficient knowledge retrieval from uploaded documents (PRDs, design docs, etc.) to enrich LLM context, leading to more relevant and accurate test artifacts. The architecture is designed for extensibility, facilitating the addition of new LLM providers and agents.

Quick Start & Requirements

  • Installation: Requires Python 3.12 and Django 5.1.6. Setup involves creating a virtual environment, installing dependencies via pip install -r requirements.txt, configuring environment variables (.env) for LLM keys, MySQL, and Milvus, migrating the database (python manage.py migrate), and running the Django development server (python manage.py runserver). A separate Spring Boot service for Java code analysis must also be started (mvn spring-boot:run).
  • Prerequisites: Running instances of Milvus 2.4.x and MySQL 8.x are mandatory. LLM API keys (e.g., DeepSeek, Qwen) are necessary. Sentence-transformers is required for the BGEM3 embedding model. Optional dependencies include Celery and Redis for asynchronous task support.
  • Resource Footprint: Significant setup involving multiple database/vector store services and external LLM APIs.
  • Links: Java analyzer service: https://github.com/MangoFisher/java-analyzer.

Highlighted Details

  • Multi-Agent System: Dedicated agents for test case generation, review, PRD analysis, interface case generation, and Java code analysis.
  • Multi-LLM Support: Configurable integration with various LLM providers (e.g., DeepSeek, Qwen), allowing agent-specific defaults and frontend model switching.
  • RAG Knowledge Base: Utilizes Milvus and BGEM3 embeddings for document parsing, vector storage, retrieval, and context enhancement to improve AI-generated test quality.
  • Extensible Architecture: Modular design for easy addition of new LLMs, agents, or custom workflows.

Maintenance & Community

No specific information regarding maintainers, community channels (Discord/Slack), roadmap, sponsorships, or partnerships was found in the provided README.

Licensing & Compatibility

The README does not specify a software license. This omission creates uncertainty regarding commercial use, distribution, and integration with closed-source projects.

Limitations & Caveats

The Java code analysis module depends on a separate Spring Boot service, the repository for which is indicated as "to be provided." While basic JSON repair is included, LLM outputs may still require manual correction. The project lacks explicit licensing information, posing a significant adoption risk. Singleton initialization behavior with the Django development server (runserver) may require --noreload or production deployment (Gunicorn/Uvicorn) for verification.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
4
Star History
19 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Meng Zhang Meng Zhang(Cofounder of TabbyML), and
3 more.

qodo-cover by qodo-ai

0.2%
5k
CLI tool for AI-powered test generation and code coverage enhancement
Created 2 years ago
Updated 1 month ago
Feedback? Help us improve.