pytest-test-runner

Run and debug pytest tests for FastAPI/RAG projects across local and CI environments.

3|1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/Gzmomo001/antichet_RAG --skill pytest-test-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytest-test-runner
Source: https://github.com/Gzmomo001/antichet_RAG/tree/main/.claude/skills/pytest-test-runner
Command: npx skills add https://github.com/Gzmomo001/antichet_RAG --skill pytest-test-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines running and debugging pytest tests for a FastAPI/RAG project, automating test execution and failure analysis to speed up stabilizing code.

Core Features & Use Cases

  • Expert guidance to run tests with proper environment setup, diagnose failures such as async issues, import errors, or database connection problems, and suggest targeted fixes.
  • Step-by-step workflow for executing tests via Makefile targets, analyzing pytest output, and re-running tests after fixes in local development or CI environments.
  • Use cases include API endpoint tests, data validation tests, and service-layer tests in FastAPI/RAG projects.

Quick Start

Set required environment variables and run the pytest suite using the project’s Makefile targets to begin diagnosing failures.

Frequently Asked Questions about pytest-test-runner

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

FAQPage Schema
How do I debug pytest failures in a FastAPI project?

To debug pytest failures in a FastAPI project, you can run the test suite using Makefile targets and analyze the pytest output to identify async issues, import errors, or database connection problems, then apply suggested fixes.

Why does my pytest test suite fail with environment variable errors in CI?

Your pytest test suite fails with environment variable errors in CI because required environment variables are not set. You must configure the necessary environment variables before executing tests via Makefile targets to ensure proper test setup and execution.

What is the best way to diagnose async issues and import errors during pytest execution?

The best way to diagnose async issues and import errors during pytest execution is to run the tests, analyze the pytest output logs, and follow a structured failure analysis workflow to pinpoint the root cause and apply targeted fixes.

Can I use this workflow to run data validation and service-layer tests for a RAG project?

Yes, you can use this workflow to run data validation and service-layer tests for a RAG project. It supports API endpoint tests, data tests, and service-layer tests across both local development and CI environments.

How do I fix database connectivity problems when running pytest tests locally?

To fix database connectivity problems when running pytest tests locally, analyze the pytest output to identify the connection failure, verify your environment variable setup, and re-run the tests using the project's Makefile targets after applying the necessary fixes.