2. Spike

If you have not used Pact before, consider trying it out on a spike application first.

  1. Using the technology stacks of your consumer and provider

    respectively, write a consumer test for a single endpoint (eg GET /helloworld).

  2. Generate the pact file.

  3. Send it to the provider team. This doesn't have to be fancy, you can just email the file.

  4. Get the provider team to implement the provider, and verify the pact.

Next, you could try adding provider states and matchers. Make sure you understand how the pact generation and verification steps work.

Last updated on by Elliott Murray