Best of / Rust crates / testing
Best of · ranked by real use · data Oct 24, 2026
Best Rust crates for testing
Short answerBy real use, the top Rust crates for testing are criterion (753K a day), proptest (663K a day), pretty_assertions (522K a day). criterion is our default pick: 753,315 real downloads a day and 19,337 dependents. Gaining fastest against the field: wiremock (+27%). 3 of these 9 shipped in the last 90 days; pretty_assertions has not released in 2+ years.
Our picks
- Default pick: criterion. The most used that still ships releases, so the most answered questions and the likeliest to already be in your tree.
- Rising: wiremock. +27% on quiet days against the field over 90 days.
- Most recently released: rstest (6 days ago).
The ranking
| # | Crate | Real downloads a day | Dependents | Trend vs field | Last release | What it is (its own description) |
|---|---|---|---|---|---|---|
| 1 | criterion Foundational | 753,315 | 19,337 | +7% | 9mo | Statistics-driven micro-benchmarking library |
| 2 | proptest Foundational | 663,355 | 12,243 | +13% | 14d | Hypothesis-like property-based testing and shrinking |
| 3 | pretty_assertions Widely used quiet 2+ years | 522,294 | 5,760 | -12% | 2.1y | Overwrite `assert_eq!` and `assert_ne!` with drop-in replacements, adding colorful diffs |
| 4 | serial_test Widely used | 429,325 | 2,974 | -11% | 3mo | Allows for the creation of serialised Rust tests |
| 5 | mockall Widely used | 406,667 | 1,393 | -15% | 4mo | A powerful mock object library for Rust |
| 6 | rstest Widely used | 381,347 | 3,531 | +2% | 6d | Rust fixture based test framework. It use procedural macro to implement fixtures and table based tests |
| 7 | insta Widely used | 379,798 | 4,970 | +2% | 21d | A snapshot testing library for Rust |
| 8 | wiremock Widely used | 309,864 | 3,363 | +27% | 14mo | HTTP mocking to test Rust applications |
| 9 | assert_cmd Widely used | 228,260 | 5,434 | -9% | 5mo | Test CLI Applications |
Rules
Candidates: crates whose own README says they do this job, picked by hand (proptest, quickcheck, rstest, mockall, insta, criterion, pretty_assertions, assert_cmd, serial_test, test-case, wiremock, mockito); one appears when we have 80+ days of crates.io data for it. Ranked by real downloads a day (quiet-day median, release-day spikes removed), crates.io data Oct 24, 2026. The default pick is the top crate that shipped a release in the last 2 years. Downloads measure use, not quality, and crates that other libraries pull in rank above tools you add yourself: read each description for fit.
Up next
Another best-of list: Same rules, same data.Best Rust crates for concurrency and parallelismRead it next →