Pact Support for Quarkus
Pact is a polyglot contract testing framework. You can read more about it here: https://pact.io/ This extension ensures Pact works will with Quarkus applications, including with continuous testing.
To get started, add the dependencies. Choose a 1.x version for Quarkus 3, and a 0.x version for Quarkus 2.
<dependency>
<groupId>io.quarkiverse.pact</groupId>
<artifactId>quarkus-pact-provider</artifactId>
<version>LATEST</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkiverse.pact</groupId>
<artifactId>quarkus-pact-consumer</artifactId>
<version>LATEST</version>
<scope>test</scope>
</dependency>
This extension allows Pact contract tests to run with mvn quarkus:dev
and mvn quarkus:test
.
- Introduction to Pact
- How to use Pact's Java library
- Quarkus Superheroes sample
- Eric Deandrea and Holly Cummins recently spoke about contract testing with Pact and used the Quarkus Superheroes for their demos. Watch the replay and view the slides if you'd like to learn more about contract testing.
Thanks goes to these wonderful people (emoji key):
Holly Cummins 💻 🚧 |
Michal Vavřík 📖 |
Nicolas Filotto 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!