skills/smithery.ai/consumer-test-coverage

consumer-test-coverage

Installation
SKILL.md

Consumer Test Coverage

Overview

Improve coverage by exercising consumer-visible behavior with infra mocked, while preserving API behavior and meeting coverage targets for the scoped service.

Workflow

  1. Read the relevant specs for the target service and map them to consumer-facing flows.
  2. Identify consumer-facing entrypoints: gRPC/HTTP handlers, public service methods, event consumers, pub/sub outputs.
  3. Add tests for success and failure paths that validate API outputs, state changes, and emitted events.
  4. Mock infra boundaries (DB, Redis, gRPC clients, timers, network listeners) to avoid real I/O.
  5. Avoid real servers; use handler calls or stubbed http.createServer and fake timers.
  6. Use vi.hoisted when mocked values are referenced by vi.mock factories.
  7. Run scoped coverage for the service and iterate until coverage target is met (default 80% unless specs say otherwise).
  8. When asked to run full test or lint suites, defer to the run-tests-lint skill workflow.

Testing Patterns

Installs
1
First Seen
Apr 3, 2026
consumer-test-coverage from smithery.ai