Contract Testing with Pact
Explore how Pact simplifies contract testing by providing libraries for multiple languages and its integration with CI/CD processes.
We'll cover the following
Just like using the Testify suite package for our more complex test setups, we will use a tool called Pact to handle a lot of the concerns outside of our tests. Pact provides libraries for many languages, which is handy for testing a JavaScript UI with your Go backend. Several tools can be used locally by the developers, as well as in the CI/CD process, to provide the promised confidence that deployments can happen with any issues.
Pact Broker
Pact Broker is an application we can start up in our environment to share contracts, as well as provide feedback for consumers stating that their contracts have been verified by the provider:
Get hands-on with 1400+ tech skills courses.