/pact-contract-testing-workshop

Consumer-Driven Contract Testing with Pact

Primary LanguageKotlin

Pact Contract Testing Workshop

A sample micro-services application that demonstrates how Pact Contract tests work for REST as well as messaging interactions. Services implemented in Kotlin + Spring Boot.

Services

Running the demo application

In terminal 1 start the catalog consumer/provider service

$ catalog/gradlew -p catalog bootRun

In terminal 2 start the frontend consumer service

$ frontend/gradlew -p frontend bootRun

Open in the browser http://localhost:8080/

Import Projects

Make sure you import the different spring boot gradle projects in your IDE not the whole git repository folder.

IntelliJ IDEA

To import a project in IntelliJ follow these steps:

  • Go to File -> Open and select the project folder catalog
  • On the Import Project from Gradle dialog select Use auto-import and Use default gradle wrapper options. Then click OK.

References