API Hub for Contract Testing - Introduction to Pact

Goals

  1. Understand the problems with end-to-end integrated testing, including managing environments

  2. Learn the basics of contract testing and how it can fit in to a general testing strategy

  3. Learn the core concepts of Pact

By the end of the course, you should be comfortable writing Pact consumer tests and verifying contracts on the provider side, and have a basic understanding of how you can collaborate using a Pact Broker.

Course Guide

The full introductory workshop can be run within 2 - 2.5 hours, and we recommend delivering it in the following order in a single session:

Step

Description

Material

Duration

n/a

Preparation step: watch introductory series on contract-testing and Pact

YouTube playlist

45 minutes

1

Introduction to contract-testing with Pact presentation (slides 1 - 46)

pdf | pptx

30 minutes

2

Pact in action (optional)

See demosAPI Hub for Contract Testing Code Demos

15 minutes

3

Run the Node JS workshop

workshop

2-3 hours

4

API Hub for Contract Testing summary (slides 47+)

pdf | pptx

5 minutes

Note

You may swap out the language for one of our other workshops if a client would prefer it done in a separate language. It's worth stating however that the JS and Golang workshops are currently the best designed for this course.

Publication date: