generate-contract-tests

Community

Generate portable API contract tests.

Authorkapilvirenahuja
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It eliminates brittle, implementation-coupled test suites by generating tier-A contract tests that validate API wire contracts and outbound integration request/response shapes.

Core Features & Use Cases

  • Portable contract coverage: Produces HTTP request/response assertions per exposed endpoint and per outbound integration boundary to survive backend stack changes.
  • Deterministic, spec-driven generation: Uses behavior-spec inputs to derive method/path schemas, scenario expectations, edge-case triggers, and error envelope shapes.
  • Harness-aligned output: Detects the target test framework from the test harness evidence and emits idiomatic tests for it, including harness discovery extensions when needed.
  • Baseline-green gate: Ensures generated tests pass against the current codebase before capturing proposals to prevent incorrect extraction.
  • Cited traceability: Writes a companion cited-specs YAML mapping generated tests back to scenario IDs for downstream aggregation.

Quick Start

Ask the test-engineer agent to run generate-contract-tests for a feature whose behavior-spec contains exposed inbound endpoints or outbound integration behaviors, using the provided test harness and evidence paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: generate-contract-tests
Download link: https://github.com/kapilvirenahuja/garura/archive/main.zip#generate-contract-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.