Skip to content
Example projects making use of https://github.com/DiUS/pact-jvm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
animal-consumer
animal-provider
javascript-consumer
playframework-provider
.gitignore
LICENSE
README.md

README.md

pact-example

Example projects for https://github.com/DiUS/pact-jvm built for playframework 2.2.1

animal-consumer

Observe https://github.com/DiUS/pact-jvm-example/blob/master/animal-consumer/test/services/AnimalServiceSpec.scala

This test runs during the normal "sbt test" (or "play test") phase, but will output a file into target/pacts/

The file is intended to then be published to a provider project

animal-provider

Observe :

To verify that this provider meets the pact:

  1. Start the server with:

    sbt run

  2. In a separate terminal run the pacts with:

    sbt verifyPacts

You can’t perform that action at this time.