add-contract-testing
CommunityVerify Spring Boot APIs with Pact
Authordprice-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Adds provider-side Pact contract testing to ensure a Spring Boot 4 service continues to honor what its consumers expect, catching runtime content drift that compile-time checks can miss.
Core Features & Use Cases
- Pact provider verification setup: Adds a dedicated
pactTestsource set, aPactProviderVerificationTest, and apactTesttask. - Correct dependency and task configuration: Uses the pinned Pact-JVM provider
au.com.dius.pact.provider:junit5:4.7.0-beta.5, and disables JaCoCo for Pact verification to avoid treating contract checks as coverage. - Seed pact workflow: Seeds a starter pact JSON (infrastructure health check) and wires verification to fail when expected interactions are not met.
Quick Start
Run the skill to add the pactTest source set and the PactProviderVerificationTest, then execute ./gradlew pactTest to verify provider conformance against contracts in src/pactTest/resources/pacts/.
Dependency Matrix
Required Modules
None requiredComponents
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: add-contract-testing Download link: https://github.com/dprice-dev/claude-java-skills/archive/main.zip#add-contract-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.