Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A lightweight AI agent system that automates unit testing.

Notifications You must be signed in to change notification settings

adi-testing/qa-agent-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Driven Automated Software Tester

A lightweight AI agent system that automates unit testing. This tool reads your Python code, generates pytest unit tests using the LM Studio API, and saves them for execution. It is designed to simplify and accelerate the testing process.


Features

  • Automatically generates pytest unit tests for your Python code.
  • Covers normal cases, edge cases, and invalid inputs.
  • Uses LM Studio API for AI-driven test generation.

Agent Stack Structure

  • Test Generator Agent: Generate pytest unit tests.
  • Test Runner Agent: Run pytest, collect results (via subprocess or log parsing).
  • Failure Analyzer Agent: Analyze which tests failed and why, and suggest code or test fixes.
  • Bug Reporter Agent: Analyzing test failures and generating detailed bug reports.
  • Test Cases Generator Agent: Create test cases based on user stories or functional requirements.

Setup Instructions

1. General Setup

Ensure Python 3.8+ is installed on your system. Verify by running:

python3 --version

2. Clone This Repository

git clone https://github.com/adi-testing/qa-agent-stack.git    
cd qa-agent-stack

3. Setting Up and Connecting the AI Model

  • Download and install LM Studio from LM Studio's official website.
  • Start the LM Studio server locally.
  • Configure the server to run on http://127.0.0.1:1234.
  • Load the desired AI model (e.g., mistral-7b-instruct).
  • Ensure the server is running and accessible by testing the endpoint:
curl http://127.0.0.1:1234/v1/chat/completions

4. Setting Up the Virtual Environment

Create a virtual environment:

python3 -m venv venv

Activate the virtual environment: On macOS/Linux:

source venv/bin/activate

On Windows:

.\venv\Scripts\activate

5. Running the Project

Ensure the LM Studio server is running.

Run the agents:

python main.py

6. Tech Stack

  • Python
  • Pytest
  • Open Source LLM

About

A lightweight AI agent system that automates unit testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages