A collection of articles about testing in Rust.
- Custom mocks in Rust.
- Testing APIs in Rust.
- Static vs Dynamic mocks in Rust.
- Testing error variants in Rust using
assert_matches!
and alternatives
- Open a PR with a new article.
- Open a discussion about testing in Rust.
- Improve the current articles by fixing bugs, and making them clearer ...
- ...
- "Unit Testing" book by Vladimir Khorikov.
- Mockall. A powerful mock object library for Rust.
- Rust book. "A Use Case for Interior Mutability: Mock Objects" by Steve Klabnik and Carol Nichols.
- Mock Objects (manually) in Rust by Eric Smith.
- A guide to mocking in Rust using Mockall by Manish Shivanandhan.