Skip to content

About

pact consumer driven contract microservice testing with spring boot and dockerize pact broker integration

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

Repository files navigation

Pact Consumer Driven Contract Testing With Spring Boot

Docker Setup

  • Run docker-compose up command to get a running Pact Broker and a clean Postgres database.

Pact Broker Usage

In order of;

Consumer

  • Execute mvn -Dtest=PactForDeliveryConsumer test for create pact contract json
  • Execute mvn pact:publish for publish to pact broker

Provider

  • Execute mvn spring-boot:run to get provider-api application up
  • Execute mvn pact:verify for pact verify

and all after visit to pact broker url. (exmp: localhost:80)

Recommended Article:

About

pact consumer driven contract microservice testing with spring boot and dockerize pact broker integration

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages