Skip to content

Getting Started

Contracteer integrates into your project in three ways: as a JVM library, as a Spring Boot starter, or as a standalone CLI. Pick the guide that matches your setup.


Test Your Server

The verifier sends requests to your running server and validates that responses conform to your OpenAPI specification.


Test Your Client

The mock server validates every incoming request and returns spec-compliant responses, giving your client tests an accurate API to run against.


Use the CLI

The CLI runs verification and starts mock servers from the command line -- no JVM project required.

  • CLI -- installation and commands.

Prerequisites

All guides assume:

  • An OpenAPI 3.0 specification (.yaml or .json)
  • JDK 21 or later (for JVM and Spring Boot guides)
  • Gradle or Maven (for JVM and Spring Boot guides)

New to Contract Testing?