HTTP mocking for Rust!

Get it on crates.io.

Documentation available at https://docs.rs/mockito.

Before upgrading, make sure to check out the changelog.

Contribution Guidelines

  1. Check the existing issues and pull requests.
  2. One commit is one feature - consider squashing.
  3. :shipit:

Development

Run tests:

sh cargo test

Run clippy sh rustup component add clippy-preview touch src/lib.rs # Touch the file to force cargo to rerun clippy on the project cargo clippy --lib --tests --all-features -- -D clippy::pedantic -D clippy::nursery

Release:

sh cargo package && cargo publish

Run benchmarks:

sh rustup install nightly rustup run nightly cargo bench

Debug output from tests

In your project, add env_logger crate, and init it before each test:

```rust

[test]

fn exampletest() { let _ = envlogger::try_init(); /* … */ } ```

and run tests with:

sh RUST_LOG=mockito=debug cargo test


Logo courtesy to http://niastudio.net :ok_hand: