https://github.com/quarkiverse/quarkus-pact
Pact is a widely-recommended framework for consumer-driven contract testing. This Quarkus extension gives the best Pact integration with Quarkus.
https://github.com/quarkiverse/quarkus-pact
consumer-driven-contract-testing pact quarkus-extension
Last synced: 11 months ago
JSON representation
Pact is a widely-recommended framework for consumer-driven contract testing. This Quarkus extension gives the best Pact integration with Quarkus.
- Host: GitHub
- URL: https://github.com/quarkiverse/quarkus-pact
- Owner: quarkiverse
- License: apache-2.0
- Created: 2022-10-18T14:20:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-24T16:12:41.000Z (12 months ago)
- Last Synced: 2025-06-24T17:26:30.385Z (12 months ago)
- Topics: consumer-driven-contract-testing, pact, quarkus-extension
- Language: Java
- Homepage: https://pact.io/
- Size: 199 KB
- Stars: 16
- Watchers: 4
- Forks: 6
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# quarkus-pact
[](#contributors)
_Pact Support for Quarkus_
provider: [](https://search.maven.org/artifact/io.quarkiverse.pact/quarkus-pact-provider) consumer: [](https://search.maven.org/artifact/io.quarkiverse.pact/quarkus-pact-consumer)
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.
### Provider tests
```
io.quarkiverse.pact
quarkus-pact-provider
LATEST
test
```
### Consumer tests
```
io.quarkiverse.pact
quarkus-pact-consumer
LATEST
test
```
## Features
### Continuous testing/dev mode
This extension allows Pact contract tests to run with `mvn quarkus:dev` and `mvn quarkus:test`.
## Samples and resources
- [Introduction to Pact](https://docs.pact.io/)
- How to use Pact's [Java library](https://docs.pact.io/implementation_guides/jvm)
- [Quarkus Superheroes sample](https://github.com/quarkusio/quarkus-super-heroes)
- [Eric Deandrea](https://developers.redhat.com/author/eric-deandrea) and [Holly Cummins](https://hollycummins.com)
recently spoke about contract testing with Pact and used the Quarkus Superheroes for their
demos. [Watch the replay](https://www.youtube.com/watch?v=vYwkDPrzqV8)
and [view the slides](https://hollycummins.com/modern-microservices-testing-pitfalls-devoxx/) if you'd like to learn
more about contract testing.
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Holly Cummins
💻 🚧

Michal Vavřík
📖

Nicolas Filotto
💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
Contributions of any kind welcome!