auto-test

Generates pytest-based unit, integration and smoke tests for FastAPI/RAG backends with mock isolation.

5|1|Updated May 9, 2026
One-click install
npx skills add https://github.com/ql-link/LinkRag --skill auto-test-ql-link
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-test
Source: https://github.com/ql-link/LinkRag/tree/main/.ai/skills/auto-test
Command: npx skills add https://github.com/ql-link/LinkRag --skill auto-test-ql-link

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of structured pytest-based tests for FastAPI/RAG backends, ensuring reliable test coverage with mock isolation across units and integration points.

Core Features & Use Cases

  • Automated test generation for unit, integration, and smoke tests of FastAPI/RAG backends with strict mock isolation.
  • Layered testing strategies that separate preparation, execution, and assertions to improve maintainability.
  • Reusable templates and fixtures designed to integrate with CI pipelines and common pytest configurations.

Quick Start

Ask the AI to generate pytest-based unit, integration, and smoke tests for a given FastAPI/RAG backend, with mocks and layered coverage.

Frequently Asked Questions about auto-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pytest tests for a FastAPI backend?

To automate pytest tests for a FastAPI backend, you can generate structured unit, integration, and smoke tests with strict mock isolation. This approach uses layered testing strategies to separate preparation, execution, and assertions for better maintainability.

What is the best way to isolate mocks in RAG integration tests?

Isolating mocks in RAG integration tests is achieved by enforcing deterministic fixtures and strict mock strategies. This separates preparation, execution, and assertions, ensuring reliable test coverage across integration points without external dependencies.

Can I generate reusable pytest fixtures compatible with CI pipelines?

Yes, you can generate reusable pytest templates and fixtures designed specifically for CI pipelines. These templates integrate with common pytest configurations to provide consistent, automated test coverage for FastAPI and RAG backends.

How do I structure unit, integration, and smoke tests for RAG applications?

Structuring unit, integration, and smoke tests for RAG applications involves using a layered testing strategy. This separates preparation, execution, and assertions into distinct layers, improving maintainability and ensuring deterministic test outcomes.

Why do my FastAPI pytest tests fail in CI pipelines?

FastAPI pytest tests often fail in CI pipelines due to lack of deterministic fixtures and mock isolation. Using reusable test templates with strict mock strategies ensures reliable execution and prevents flaky test failures during automated CI runs.