Daily Shaarli

All links of one day in a single page.

April 13, 2019

GitHub - DiUS/pact-jvm: JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

Define a pact between service consumers and providers, enabling "consumer-driven contract" testing.

Pact provides an RSpec DSL for service consumers to define the HTTP requests they will make to a service provider and the HTTP responses they expect back. These expectations are used in the consumers' specs to provide a mock service provider. The interactions are recorded and played back in the service provider specs to ensure the service provider actually does provide the response the consumer expects.

This allows testing of both sides of an integration point using fast unit tests.