Testing
Rust and Cargo have a very good system for testing. However, there are still many useful utility crates that make testing easier. Some of them are listed below:
-
actix-http-test
Various helpers for Actix applications to use during testing
-
httpmock
HTTP mocking library for Rust
-
insta
A snapshot testing library for Rust
-
mockito
HTTP mocking for Rust.
-
mockall
A powerful mock object library for Rust.
-
proptest
Hypothesis-like property-based testing and shrinking.
-
quickcheck
Automatic property based testing with shrinking.
-
rstest
Rust fixture based test framework. It use procedural macro to implement fixtures and table based tests.
-
tokio-test
Testing utilities for Tokio- and futures-based code
-
wiremock
HTTP mocking to test Rust applications.
Do you know something we don't?
Did we miss an important crate? Or maybe you just recently launched something that should be listed here, too? Let us know!