Skip to main content
    DevOps
    Way of Working
    1. Home
    2. Capabilities
    3. Test Contract Testing

    Contract Testing Between Services

    Acceleration
    Phase: test
    CFR
    LT

    Quick Reference

    Phase
    test
    Epic
    Advanced Testing & Performance Validation
    Milestone
    Acceleration
    Target
    >= 70% integrations have contract tests
    Implementation Time
    Part of Advanced Testing & Performance Validation epic: 4.5 weeks (36 hours per capability avg)

    What & Why

    Definition

    >= 70% of service-to-service integrations use contract tests (Pact) to prevent breaking changes.

    Business Value

    Catches performance regressions 100% of the time before production and reduces visual bugs by 90% through automated regression testing Achieving >= 70% integrations have contract tests is a key milestone toward this goal.

    Context

    This capability is part of the Acceleration milestone's focus on scale automation, embed compliance, improve speed & reliability. Essential for teams targeting CFR, LT improvements.

    Success Criteria

    Target

    >= 70% integrations have contract tests

    Measurement

    Contract test coverage across service pairs

    Evidence

    • Pact contract files
    • Pact broker dashboard
    • Contract verification results

    In Practice

    Real-World Implementation

    Consumer services define expected API contracts, publish to Pact broker. Provider services verify contracts in CI before deployment.

    Concrete Example

    order-service (consumer) defines contract: GET /users/:id returns {id, name, email}. user-service (provider) verifies contract passes in CI.

    Implementation Guide

    Prerequisites

    Integration Testing
    >= 60% services have integration tests

    Implementation Steps

    Follow the measurement approach: Contract test coverage across service pairs

    For detailed step-by-step guidance, refer to the Advanced Testing & Performance Validation Implementation Kit.

    Resources

    Implementation Kit

    Advanced Testing & Performance Validation Kit

    Templates

    Browse all templates

    Related Resources

    View learning paths

    Related Capabilities

    Prerequisites

    Implement these first

    Integration Testing

    Complementary

    Often adopted together, from the Advanced Testing & Performance Validation epic

    Performance Testing in CI
    Dynamic Application Security Testing
    Mutation Testing for Critical Code
    Visual Regression Testing

    Troubleshooting & FAQs

    Common Issues

    Issue: Target metric not improving

    Solution: Verify measurement is accurate, check if prerequisites are fully implemented, review evidence artifacts for completeness

    Issue: Team resistance to adoption

    Solution: Start with pilot team, demonstrate value with metrics, provide training and support during transition

    Issue: Inconsistent implementation across teams

    Solution: Create shared templates and guidelines, establish regular sync meetings, use automation to enforce standards

    Frequently Asked Questions

    Can we implement this before completing prerequisites?

    While possible, it's not recommended. Prerequisites ensure foundational practices are in place, making this capability more effective and easier to adopt.

    How long does implementation typically take?

    Most capabilities can be implemented within 90 days when tackled as part of the Acceleration milestone. Individual timelines vary based on team size and existing practices.

    DevOps
    Way of Working

    DevOps practices for the entire delivery lifecycle

    © 2019-2026 devopswow.com. Created by Burhan Öcüt

    PartnersAboutPrivacyTermsCookies