Step by Step API Contract Testing with Pact for Beginners

Learn the basics of how to implement API Consumer Driven Contract Testing with Pact (JavaScript, .Net Core, Docker)

Learn how to write a full End to End API Contract Test with Pact and setup the Pact Broker in Docker!

What you’ll learn

  • Understand API Contract Testing when testing microservices.
  • Consumer Driven Contract Test using pact-js.
  • Provider Contract Test using PactNet.
  • Setup Pact Broker using Docker.
  • Contract Testing in Continuous Integration with Github Actions.
  • Publish Pact Contracts with Postman.
  • Faster feedback from Contract Tests than Integration Tests.

Course Content

  • Introduction –> 1 lecture • 5min.
  • Consumer Tests –> 3 lectures • 8min.
  • Pact Broker –> 3 lectures • 8min.
  • Provider Tests –> 3 lectures • 7min.
  • Can I Deploy CLI –> 3 lectures • 4min.

Step by Step API Contract Testing with Pact for Beginners

Requirements

  • Basic programming skills (JavaScript, C#).
  • Basic knowledge of Docker (docker-compose).

Learn how to write a full End to End API Contract Test with Pact and setup the Pact Broker in Docker!

Working in a microservices architecture? Tired of problems in your integration environments, the long process of waiting for API changes to be deployed to integration for testing.

Things you will learn:

  • Consumer contract testing using Pact-JS
  • Provider contract testing using PactNet
  • Pact Broker Setup with Docker
  • Publish Pact Contracts using Postman and Pact-JS
  • Can I Deploy using Pact Broker Client

Introduce contract testing to your test suite, for these benefits and much more:

  • Open communication between microservices
  • Faster feedback
  • Less integration issues
  • Visualise consumers
  • Versioning made easy