Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pact-java

A consumer-driven contract testing example using pact-jvm, spring boot, and maven

Running the consumer

(inside the pact-consumer)
mvn test

This will create a pact file in target/pacts. If the tests pass, we know that the consumer interacts correctly with the contract.

Running the provider

Start the provider application

(inside the pact-provider directory)
mvn spring-boot:run

In a separate window/process

(inside the pact-provider directory)
mvn pact:verify

If the tests pass, we know that the provider adheres to the contract that was generated by the consumer. The pact which the provider is validating against resides in src/main/resources/pact-from-consumer, but can be configured to come from VCS or the Pact broker

About

Consumer driven contract testing example using pact-jvm, spring boot, and maven

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages