I released wiremock, a new crate that provides HTTP mocking to test Rust applications. You can spin up as many mock HTTP servers as you need to mock all the 3rd party APIs that your application interacts with.
Mock HTTP servers are fully isolated: tests can be run in parallel, with no interference. Each server is shut down when it goes out of scope (e.g. end of test execution).
wiremock provides out-of-the-box a set of matching strategies, but more can be defined to suit your testing needs via the Match trait.
wiremock is asynchronous: it is compatible (and tested) against both async_std and tokio as runtimes.
Mock HTTP servers are fully isolated: tests can be run in parallel, with no interference. Each server is shut down when it goes out of scope (e.g. end of test execution).
wiremock provides out-of-the-box a set of matching strategies, but more can be defined to suit your testing needs via the Match trait.
wiremock is asynchronous: it is compatible (and tested) against both async_std and tokio as runtimes.