Skip to content

Pact is a code-first tool for testing HTTP and message integrations using contract tests.

Notifications You must be signed in to change notification settings

leoduprates/PactContractTesting

Repository files navigation

Java Karate JUnit5 Gradle Docker LinkedIn

Pact Contract Testing

Pact is a code-first tool for testing HTTP and message integrations using contract tests.

Project Architecture

PactConstratTesting/
├── src
│   ├── test
│       ├── java/com/example/pact
│           ├── consumer
│           ├── provider

Built With

Design Patterns

This project uses the design patterns from Google Java Style Guide .

Getting Started

1. Java installation instructions: java.com

2. Gradle installation instructions: gradle.org

3. Build Project

$ ./gradlew build

4. Run Tests

$  ./gradlew test

5. Run Consumer Tests & Publish

$  ./gradlew test --tests PersonConsumerContractTest pactPublish

5. Run Provider Tests & Verify

$  ./gradlew test --tests PersonProviderContractTest -Dpact.verifier.publishResults=true

Docker

Container Image: postgres Container Image: pact-broker

1. Docker Compose Up:

$ docker-compose up

2. Docker Compose Stop:

$ docker-compose stop

Links

About

Pact is a code-first tool for testing HTTP and message integrations using contract tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages