Skip to content

Codearte/accurest

Repository files navigation

ARCHIVED: NOT IN DEVELOPMENT

This project has moved to https://github.com/spring-cloud/spring-cloud-contract

Accurest

Build Status Maven Central Join the chat at https://gitter.im/Codearte/accurest

Consumer Driven Contracts verifier for Java

To make a long story short - Accurest is a tool for Consumer Driven Contract (CDC) development. Accurest ships an easy DSL for describing REST contracts for JVM-based applications. Since version 1.0.7 it also supports messaging.

The contract DSL is used by Accurest for two things:

  1. generating WireMock's JSON stub definitions / stubbed messaging endpoints, allowing rapid development of the consumer side, generating JUnit / Spock's acceptance tests for the server - to verify if your API implementation is compliant with the contract.
  2. moving TDD to an architecture level.

For more information please go to the Documentation

Requirements

Wiremock

In order to use Accurest with Wiremock you have to have Wiremock in version at least 2.0.0-beta . Of course the higher the better :)

Additional projects

Stub Runner

Allows you to download WireMock stubs from the provided Maven repository and runs them in WireMock servers.

Stub Runner JUnit

Stub Runner with JUnit rules

Stub Runner Spring

Spring Configuration that automatically starts stubs upon Spring Context build up

Stub Runner Spring Cloud

Spring Cloud AutoConfiguration that automatically starts stubs upon Spring Context build up and allows you to call the stubs as if they were registered in your service discovery

Maven project support with standalone Accurest Stub Runner and Accurest Contracts to Wiremock mappings converter