Skip to main content

Contract Testing

Prevent integration failures before they happen. Consumer-driven contracts with Pact, provider verification, CI integration, and the shift from end-to-end to contract-based testing strategies.

advanced 3 courses 15 lessons

This path requires a Pro subscription

Subscribe to unlock all lessons, challenges, and bug hunts.

View pricing
1

Why Contract Testing?

The integration testing problem and why contracts are the missing piece between unit tests and E2E.

advanced ~3.0h
  • Requires subscription
    The Integration Testing Problem
    reading +10 XP
  • Requires subscription
    What is a Contract?
    reading +15 XP
  • Requires subscription
    Consumer-Driven vs Provider-Driven
    reading +15 XP
  • Requires subscription
    Contract Testing vs Other Approaches
    reading +15 XP
  • Requires subscription
    The Testing Pyramid and Contracts
    reading +15 XP
2

Pact: Hands-On Contract Testing

Learn Pact from setup to CI. Write consumer tests, verify providers, share contracts through a broker.

advanced ~5.0h
  • Requires subscription
    Pact Overview and Setup
    reading +15 XP
  • Requires subscription
    Writing Consumer Tests
    reading +20 XP
  • Requires subscription
    Provider Verification
    reading +20 XP
  • Requires subscription
    The Pact Broker
    reading +15 XP
  • Requires subscription
    Handling Schema Evolution
    reading +15 XP
3

Contract Testing in Practice

Apply contract testing to REST, GraphQL, and event-driven systems. Integrate into CI/CD and build a full setup.

advanced ~4.0h
  • Requires subscription
    Contract Testing for REST APIs
    reading +15 XP
  • Requires subscription
    Contract Testing for GraphQL
    reading +15 XP
  • Requires subscription
    Contract Testing for Event-Driven Systems
    reading +15 XP
  • Requires subscription
    CI/CD Integration
    reading +15 XP
  • Requires subscription
    Capstone: Full Contract Testing Setup
    exercise +25 XP