Skip to content

About

In-process mock server for matching HTTP requests and generating responses from a pact file

Resources

Contributing

Stars

10 stars

Watchers

3 watching

Forks

Repository files navigation

Logo of the project

Build

Pact Core Mock Server

This project contains the in-process mock server for matching HTTP requests and generating responses from a pact file. It implements the Pact specifications up to V4 Pact specification.

There are two modules to this project:

  • pact_mock_server - This is the library that provides the in-process mock server.
  • pact_mock_server_cli - A CLI for starting and controlling seperate process mock servers.

Usage

Building

To build the libraries in this project, you need a working Rust environment. Requires minimum Rust 1.77.0. Refer to the Rust Guide.

The build tool used is cargo.

cargo build

This will compile all the libraries and put the generated files in rust/target/debug.

To run the tests:

cargo test

Releasing

See RELEASING for how a release works and how to recover from a failed one.

Contributing

See CONTRIBUTING (PRs are always welcome!).

Documentation

Rust crate documentation is published to the Rust documentation site.

Additional documentation can be found at the main Pact website.

Contact

Join us in slack: slack

or

Licensing

The code in this project is licensed under a MIT license. See LICENSE.

About

In-process mock server for matching HTTP requests and generating responses from a pact file

Resources

Contributing

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages