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.
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 buildThis will compile all the libraries and put the generated files in rust/target/debug.
To run the tests:
cargo testSee RELEASING for how a release works and how to recover from a failed one.
See CONTRIBUTING (PRs are always welcome!).
Rust crate documentation is published to the Rust documentation site.
Additional documentation can be found at the main Pact website.
or
- Twitter: @pact_up
- Stack Overflow: stackoverflow.com/questions/tagged/pact
The code in this project is licensed under a MIT license. See LICENSE.