An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# quarkus-pact
[![All Contributors](https://img.shields.io/github/all-contributors/quarkiverse/quarkus-pact?style=for-the-badge&color=blue&style=plastic)](#contributors)

_Pact Support for Quarkus_

provider: [![Version](https://img.shields.io/maven-central/v/io.quarkiverse.pact/quarkus-pact-provider?logo=apache-maven&style=for-the-badge&color=blue&style=plastic)](https://search.maven.org/artifact/io.quarkiverse.pact/quarkus-pact-provider)   consumer: [![Version](https://img.shields.io/maven-central/v/io.quarkiverse.pact/quarkus-pact-consumer?logo=apache-maven&style=for-the-badge&color=blue&style=plastic)](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
Holly Cummins

💻 🚧
Michal Vavřík
Michal Vavřík

📖
Nicolas Filotto
Nicolas Filotto

💻

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