Quarkus Insights cover image

Quarkus Insights

Quarkus Insights #117: Contract Testing with Pact and Quarkus

Dec 13, 2023
In this discussion, Holly Cummins, a skilled software engineer, dives into the world of contract testing using Pact and Quarkus. She highlights how contract tests blend unit and integration testing for enhanced confidence in microservices. The conversation includes an intriguing demonstration involving a sweater shop application, showcasing the challenges of end-to-end testing. Holly also emphasizes the significance of consumer-driven contracts and efficient CI integration, ensuring robust software practices while navigating the complexities of HTTP response codes in testing.
01:07:37

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • Contract testing combines the lightness of unit tests with the confidence of integration tests, enhancing the development toolkit for microservices.
  • PACT serves as a consumer-driven contract testing tool that effectively manages dependencies in microservices, ensuring accurate interactions between services.

Deep dives

Introduction to Contract Testing

Contract testing is a method designed to ensure that microservices work together correctly without requiring all services to be up and running simultaneously, thus avoiding the pitfalls of traditional testing. The discussion highlights the challenges posed by microservices, primarily their interdependencies, which can lead to failures when changes are made to one service without considering its interactions with others. It introduces the concept of using contract testing to mitigate these issues by establishing clear agreements between services about how they communicate, ultimately promoting more robust development practices. The approach encourages teams to focus on both consumer and provider roles to maintain effective collaboration and streamline the integration process.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode