Mockito alternatives and similar packages
Based on the "Testing" category.
Alternatively, view Mockito alternatives based on common mentions on social networks and blogs.
quickcheck8.1 0.0 Mockito VS quickcheckAutomated property based testing for Rust (with shrinking).
tarpaulin8.0 0.0 Mockito VS tarpaulinA code coverage tool for Rust projects
afl.rs7.4 5.9 L4 Mockito VS afl.rs🐇 Fuzzing Rust code with American Fuzzy Lop
proptest7.3 0.0 Mockito VS proptestHypothesis-like property testing for Rust
trust7.0 0.0 Mockito VS trustTravis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows
stainless5.3 0.0 Mockito VS stainlessOrganized, flexible testing framework for Rust
Mockiato3.9 0.0 Mockito VS MockiatoA strict, yet friendly mocking library for Rust 2018
shiny2.8 0.0 Mockito VS shinya shiny test framework for rust
polish1.9 0.0 Mockito VS polishTesting Framework for Rust
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Mockito or a related project?
HTTP mocking for Rust!
Get it on crates.io.
Documentation is available at https://docs.rs/mockito.
Before upgrading, make sure to check out the changelog.
- Check the existing issues and pull requests.
- One commit is one feature - consider squashing.
- Format code with
...or run tests using a different toolchain:
rustup run --install 1.42.0 cargo test
...or run tests while disabling the default features (e.g. the colors):
cargo test --no-default-features
Mockito uses rustfmt as a general code style.
rustup component add rustfmt
Some editors might provide a plugin to format your Rust code automatically.
Mockito uses clippy and it should be run always on the minimum supported Rust version, in order to ensure backwards compatibility.
rustup component add clippy-preview
Run the linter on the minimum supported Rust version:
rustup run --install 1.42.0 cargo clippy --lib --tests --all-features -- -D clippy::complexity
rustup install nightly
rustup run nightly cargo bench
Logo courtesy to http://niastudio.net :ok_hand: