pcs-integration-test

Run deterministic PCS microservice integration tests with async fixtures and in-memory SQLite.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/Benmore-Studio/Benmore-Meridian --skill pcs-integration-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pcs-integration-test
Source: https://github.com/Benmore-Studio/Benmore-Meridian/tree/main/skills/pcs/pcs-integration-test
Command: npx skills add https://github.com/Benmore-Studio/Benmore-Meridian --skill pcs-integration-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Addresses the need for deterministic integration tests for PCS microservices using async fixtures and in-memory SQLite.

Core Features & Use Cases

  • Async fixtures for service setup and teardown in tests.
  • SQLite in-memory database for fast, isolated test environments.
  • Tenant header helpers and dependency override patterns for multi-tenant PCS services.
  • Kafka mock strategies and cross-tenant isolation tests to validate isolation and messaging.

Quick Start

Run the PCS integration test suite using the configured fixtures and test patterns in your service's test directory.

Frequently Asked Questions about pcs-integration-test

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

FAQPage Schema
How do I set up deterministic integration tests for async microservices?

Deterministic integration testing for async microservices uses async fixtures with an in-memory SQLite database to create fast, isolated test environments. This approach ensures reliable execution by mocking external dependencies like Kafka and overriding service dependencies.

How do I test cross-tenant isolation in a multi-tenant microservice?

Cross-tenant isolation testing validates that data remains segregated across tenants by applying tenant header helpers and dependency override patterns. This ensures multi-tenant PCS services correctly enforce boundaries during integration tests.

What's the best way to mock Kafka in pytest-asyncio integration tests?

Mocking Kafka in pytest-asyncio integration tests is handled through dedicated Kafka mock strategies. These strategies validate messaging behavior and cross-tenant isolation without requiring a live broker, ensuring test suite determinism.

Do I need SQLAlchemy async engine and AsyncClient to run PCS integration tests?

Yes, running PCS integration tests requires pytest-asyncio, AsyncClient, and the SQLAlchemy async engine. A minimal conftest pattern boots the application using these tools alongside in-memory SQLite to enable isolated async testing.

Why use in-memory SQLite for pytest microservice integration testing?

In-memory SQLite provides a fast, isolated database environment for pytest microservice integration testing. It eliminates disk I/O latency and allows each test run to start with a clean state, ensuring deterministic and repeatable results.

Can I use dependency overrides to test tenant headers in FastAPI async tests?

Yes, dependency overrides allow you to test tenant headers in FastAPI async tests by intercepting request flows. Combined with async fixtures, this pattern securely simulates multi-tenant contexts without modifying production code.