Open in TheBrain

Workflow

Workflow of PACT Testing

  1. Define Contracts:
    • The consumer creates a set of expectations (pacts) for the interactions it has with the provider.
  1. Verify Contracts:
    • The provider tests itself against the pacts defined by the consumer to ensure it meets the consumer's expectations.
  1. Publish Pacts:
    • Pacts are published to a pact broker, which serves as a repository for pacts and can facilitate collaboration between teams.
  1. Continuous Integration:
    • Pacts are verified as part of the CI/CD pipeline to ensure that changes do not break existing contracts.