microservices-testing
Installation
SKILL.md
Microservices Testing
Distributed systems shift bugs from inside components to between them. Favor the honeycomb: few unit, many integration/contract, very few E2E.
Layers
| Layer | Scope | Tooling |
|---|---|---|
| Unit | Domain logic in one service | unit-testing |
| Component | One service, real DB/cache (Testcontainers), stubbed peers | WireMock, MockServer, MSW, Testcontainers |
| Contract | Consumer expectations ↔ provider | Pact, Spring Cloud Contract (contract-testing) |
| Integration | 2–3 real services in a compose/k8s namespace | docker compose, kind/k3d, Tilt |
| E2E | Critical user journeys only (≤10) | Playwright/Cypress on staging |
| Production | Canary, synthetic probes, feature flags | production-monitoring-synthetic-testing |