Skip to content
Development
Skill

/testing-integration

Integration and contract tests: API endpoints, databases, Pact contracts, property-based tests, Zod validation. Use when testing API or service boundaries.

From plugin
orchestkit
301122 skills36 agents

Claude Code

$ npx -y skills add yonatangross/orchestkit --skill testing-integration --agent claude-code

SKILL.md

testing-integration.SKILL.md
name: testing-integration
license: MIT
compatibility: "Claude Code 2.1.277+."
description: "Integration and contract tests: API endpoints, databases, Pact contracts, property-based tests, Zod validation. Use when testing API or service boundaries."
user-invocable: false
disable-model-invocation: false
targets:
  - library: "@pact-foundation/pact"
    version: ">=17.1.4"
  - library: "testcontainers"
    version: ">=12.2.0"
metadata:
  owner-agent: "test-generator"
  category: document-asset-creation
  version: "2.1.0"
  author: "OrchestKit"
  complexity: "medium"
  tags: "testing, integration, contract, pact, property, zod, api"
allowed-tools: "Read Glob Grep WebFetch WebSearch"
path_patterns: ["**/integration/**", "**/testcontainers/**", "docker-compose.test.*"]

Integration & Contract Testing

Focused patterns for testing API boundaries, cross-service contracts, component integration, database layers, property-based verification, and schema validation.

Quick Reference

> For complex emulate setups (full config generation, webhook HMAC, CI per-worker port isolation), delegate to the [`emulate-engineer`](../../agents/emulate-engineer.md) subagent. Pairs with the `emulate-seed` skill.

| Area | Rule / Reference | Impact | |------|-----------------|--------| | **Stateful API testing (emulate)** | `rules/emulate-stateful-testing.md` | **HIGH** | | API endpoint tests | `rules/integration-api.md` | HIGH | | React component integration | `rules/integration-component.md` | HIGH | | Database layer testing | `rules/integration-database.md` | HIGH | | Zod schema validation | `rules/validation-zod-schema.md` | HIGH | | Pact contract testing | `rules/verification-contract.md` | MEDIUM | | Stateful testing (Hypothesis) | `rules/verification-stateful.md` | MEDIUM | | Evidence & property-based | `rules/verification-techniques.md` | MEDIUM |

References

| Topic | File | |-------|------| | **House rules not documented upstream** | `references/ork-delta.md` | | Consumer-side Pact tests | `references/consumer-tests.md` | | Hypothesis strategies guide | `references/strategies-guide.md` |

Checklists

| Checklist | File | |-----------|------| | Contract testing readiness | `checklists/contract-testing-checklist.md` | | Property-based testing | `checklists/property-testing-checklist.md` |

Scripts & Templates

| Script | File | |--------|------| | Create integration test | `scripts/create-integration-test.md` |

Examples

| Example | File | |---------|------| | Full testing strategy | `examples/orchestkit-test-strategy.md` |

---

Upstream coverage (do not restate)

This skill wraps Pact, the Pact Broker, and FastAPI testing. It carries only the OrchestKit delta. Fetch the vendor docs for the topics below instead of restating them here.

| Topic | First-party source | |-------|--------------------| | Pact Broker publish CLI, pact versioning and tagging flags | https://docs.pact.io/pact_broker/publishing_and_retrieving_pacts | | `can-i-deploy`, `record-deployment`, `record-release` | https://docs.pact.io/pact_broker/can_i_deploy | | Deployment and release recording semantics | https://docs.pact.io/pact_broker/recording_deployments_and_releases | | Broker webhooks that trigger a provider build on contract change | https://docs.pact.io/pact_broker/webhooks | | Consumer version selector syntax (`mainBranch`, `deployedOrReleased`, `matchingBranch`) | https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors | | Pending pact semantics | https://docs.pact.io/pact_broker/advanced_topics/pending_pacts | | Provider state setup hooks and state endpoint wiring | https://docs.pact.io/getting_started/provider_states | | FastAPI `TestClient` and `dependency_overrides` for a test database | https://fastapi.tiangolo.com/advanced/testing-dependencies/ | | GitHub Actions job ordering (`needs:`) and branch filters | https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | | QA test-plan paperwork (schedule, roles, defect lifecycle, sign-off tables) | Tracker-owned; no single vendor page covers all four. Defect lifecycle: https://docs.github.com/en/issues/tracking-your-work-with-issues/about-issues . Schedule, roles and sign-off are org process, not a documented product feature. House quality budgets from the retired template survive in `references/ork-delta.md` |

The house subset of those topics stays in this skill and is not routed away: `rules/verification-contract.md` keeps the two broker commands ork gates on plus the selector defaults; `checklists/contract-testing-checklist.md` keeps the CI/CD, isolation and security checkboxes; `references/consumer-tests.md` keeps the business-language provider-state naming convention and the matcher table. The rules that have no upstream home at all live in `references/ork-delta.md`.

---

Stateful API Testing (emulate — FIRST CHOICE)

For GitHub, Vercel, and Google API integration tests, **emulate is the first choice**. It provides full state machines that model real API behavior — not static mocks.

| Tool | Best For | |------|----------| | **emulate** | Stateful API tests (GitHub/Vercel/Google) — FIRST CHOICE | | Pact | Cross-team contract verification | | MSW | Frontend HTTP mocking (simple request/response) | | Nock | Node.js unit-level HTTP interception |

See `rules/emulate-stateful-testing.md` for the full decision matrix, seed-start-test-assert pattern, and incorrect/correct examples.

---

Testcontainers (real dependencies in CI)

When contract tests and emulate aren't enough — e.g. testing against real Postgres, Redis, Kafka, or an S3-compatible store — **Testcontainers** spins up ephemeral Docker containers per test and tears them down afterward. `path_patterns` above already matches `**/testcontainers/**`; use these patterns there.

**Target**: `testcontainers >= 11.0.0` (Node) — v11 (Q1 2026) added named-network auto-cleanup, reusable containers via `.withReuse()`, and first-class Podma

Read more
@yonatangross
Ships withorchestkit

The Complete AI Development Toolkit for Claude Code. 115 skills, 36 agents, 163 hooks. Install `ork` for stable (v10.x).

301122 skills36 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
301
Star history of yonatangross/orchestkit on GitHub, a chart by star-history.com

Other skills on orchestkit.

ork-assess

ork-assess

Assess a code change, design, architecture, workflow, or competing options against explicit criteria and evidence. Use when a…

ork-brainstorm

ork-brainstorm

Compare plausible implementation, architecture, product, or operational approaches before committing to one. Use when a request…

ork-explore

ork-explore

Map an unfamiliar codebase, feature, architecture, data flow, or operational path with file-backed evidence. Use when a request…

ork-glyph

ork-glyph

Render an answer inline as compact ASCII or box-drawing art with semantic status icons. Use for status, inventories, budgets,…

ork-implement

ork-implement

Make an approved, scoped change and prove the affected behavior. Use when a request asks to implement, build, add, or land a…

ork-review-pr

ork-review-pr

Review a pull request or branch for correctness, regressions, security, operational risk, and missing evidence. Use when a…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about testing-integration.

Which coding agents can use testing-integration?
testing-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.