Loading…
This event has ended. Visit the official site or create your own event on Sched.
Back To Schedule
Friday, June 4 • 13:30 - 14:10
Verifying Relationships: Consumer-Driven Contract Tests and Microservices

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Microservice architecture brings many benefits but there is one potential pitfall when testing them. How do you model and test the many relationships between services? You could try integration tests but they are expensive to maintain, slow to run and come with orchestration complications. Contract testing could help with this. But the traditional contract test has a circular problem. The team writing the service defines the contract and the test. As soon as this isn’t kept up to date (only a matter of time) the test is useless. A better approach is Consumer-Driven Contract testing. Here we use the output of contract tests owned by your consumers to test your API.

This talk will introduce you to the Pact framework to write these tests and the key concepts. You will be able to avoid that integration test pack and have more time for other test activities in your team.

Key takeaways:
  • Learn why Consumer-Driven Contract Testing can be preferable to integration testing.
  • Understand the difference between the traditional Contract Test and Consumer-Driven Contract tests.
  • Get an introduction to the Pact.io framework used for creating Consumer-Driven Contract tests.
  • Hear some real-world examples of where these style of tests have helped and hindered a project.

Speakers
avatar for Thomas Shipley

Thomas Shipley

Senior QA Consultant, Equal Experts
Thomas Shipley is a contract QA in London currently working with EE. He has experience across many different industries including gaming, retail and big data companies including Microsoft, Just Eat, Datasift and John Lewis. His primary focuses are automated non-functional testing... Read More →


Friday June 4, 2021 13:30 - 14:10 EEST
Väike Saal