GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - roamingthings/workbench-spring-contract: This workbench demonstrates how to do consumer driven contract development (CDC) by using the Spring Cloud Contract Verifier.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
contract-consumer
contract-consumer
 
 
contract-producer
contract-producer
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Spring Consumer Driven Contract Development Workbench

This workbench demonstrates how to do consumer driven contract development (CDC) by using the Spring Cloud Contract Verifier.

It is inspired by a talk from Josh Long given on October, 3rd 2018 on YouTube for the v JUG.

You can find Joshs example using reactive paradigms at GitHub: bootiful-testing

The talk can be watched on YouTube: Bootiful Testing by Josh Long

This workbench contains an application offering a REST api (producer) and another application that implements a client to access this service (consumer).

Building and Testing the Producer and its Stubs

The contract stubs are build and tested by a regular gradle build.

If you want to perform the generation of contract tests as a separate task, you can use the following command:

$ ./gradlew :contract-producer:generateContractTests :contract-producer:test

The following command will then publish the generated (and tested) stubs to the local maven repository:

$ ./gradlew :contract-producer:publishToMavenLocal

Build and Test the Consumer

To build and test the consumer use ./gradlew :contract-consumer:check. This will pull the test stubs generated by the producer from the local maven repository and use them for running the tests.

About

This workbench demonstrates how to do consumer driven contract development (CDC) by using the Spring Cloud Contract Verifier.

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.