freeshard-testing-and-qa

Write, execute, and debug tests in the Freeshard shard_core repository.

47|2|Updated Feb 11, 2025
One-click install
npx skills add https://github.com/FreeshardBase/freeshard --skill freeshard-testing-and-qa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeshard-testing-and-qa
Source: https://github.com/FreeshardBase/freeshard/tree/main/.claude/skills/freeshard-testing-and-qa
Command: npx skills add https://github.com/FreeshardBase/freeshard --skill freeshard-testing-and-qa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves the complexity of testing a distributed FastAPI application that relies on real PostgreSQL containers and Docker-based app installation, preventing common pitfalls like flaky tests and environment collisions.

Core Features & Use Cases

  • Test Tier Selection: Provides clear rules for choosing between unit-level, database-layer, or full integration tests to optimize execution speed and reliability.
  • Environment Management: Offers guidance on managing Docker networks, database truncation, and configuration overrides to ensure test isolation.
  • Flaky Test Resolution: Includes a comprehensive playbook for diagnosing and fixing CI-only failures, timeouts, and hanging test suites.

Quick Start

Use the freeshard-testing-and-qa skill to diagnose why a specific test is hanging in the CI pipeline and apply the appropriate fix from the playbook.

Frequently Asked Questions about freeshard-testing-and-qa

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

FAQPage Schema
How do I stop FastAPI integration tests from hanging in CI when using Docker containers?

To stop FastAPI integration tests from hanging in CI, diagnose container startup delays, network collisions, and database state conflicts using a flaky test resolution playbook to apply targeted fixes and restore CI stability.

How do I isolate PostgreSQL database state between pytest runs in a FastAPI application?

To isolate PostgreSQL database state between pytest runs, manage database truncation and apply configuration overrides to ensure each test tier executes in a clean, isolated environment without data collisions.

When should I choose unit-level tests versus full integration tests for a FastAPI service?

Choose unit-level tests versus full integration tests based on strict test tier selection rules that optimize execution speed and reliability, reserving Docker-based integration tests for complex, multi-service workflows.

Why are my FastAPI Docker integration tests failing only in the CI pipeline and not locally?

FastAPI Docker integration tests failing only in CI often result from environment collisions, network configuration mismatches, or container startup timeouts, which require specific environment management protocols to diagnose and resolve.

What is the best way to manage Docker networks and database truncation for FastAPI test suites?

The best way to manage Docker networks and database truncation for FastAPI test suites is to follow defined environment management guidance that ensures test isolation and prevents flaky tests across different execution tiers.