SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Rust Testing Projects
-
Project mention: Hurl vs Postman: Git-Friendly API Testing With Proxy-Aware Egress (2026) | dev.to | 2026-06-12
Hurl ships as a native binary.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
foundry
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Project mention: Contrarian View: Vyper 0.3.10 Is Overhyped – Solidity 0.8.20 Is Better for Smart Contracts in 2026 | dev.to | 2026-04-29 -
-
-
As for third-party stuff, the usual suspects in dev-dependencies are pretty_assertions (a diff instead of a wall of text when comparing big structs) and proptest - property-based testing, where you describe an invariant and the library generates hundreds of inputs and shrinks the counterexample for you. Some people prefer quickcheck, it's older and simpler. For snapshots there's insta. Async tests get wrapped in #[tokio::test].
-
As for third-party stuff, the usual suspects in dev-dependencies are pretty_assertions (a diff instead of a wall of text when comparing big structs) and proptest - property-based testing, where you describe an invariant and the library generates hundreds of inputs and shrinks the counterexample for you. Some people prefer quickcheck, it's older and simpler. For snapshots there's insta. Async tests get wrapped in #[tokio::test].
-
-
-
-
-
-
cargo-hack
Cargo subcommand to provide various options useful for testing and continuous integration.
-
mockito is the veteran. The shortest path from zero to a working test:
-
siteone-crawler
SiteOne Crawler is a cross-platform website crawler and analyzer for SEO, security, accessibility, and performance optimization—ideal for developers, DevOps, QA engineers, and consultants. Supports Windows, macOS, and Linux (x64 and arm64).
Project mention: Show HN: SiteOne Crawler – Single-binary CI/CD gate for web quality regressions | news.ycombinator.com | 2026-03-17cargo install siteone-crawler # from source, any platform
# Windows: https://github.com/janreges/siteone-crawler/releases
This crawls every page, scores it across 5 categories (Security, Performance, SEO,
-
maelstrom
Maelstrom is a fast Rust, Go, and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner. (by maelstrom-software)
-
-
-
-
-
-
-
I love Cram tests, they can be so readable! Being essentially shell scripts, though, they can be a bit hard to integrate into any given language's regular testing framework though.
I get the sense that "expect tests", also known as "inline snapshots tests", are becoming more and more popular. I think that many, including myself, first learned about it from the Jane Street blog post "What if writing tests was a joyful experience?" (https://blog.janestreet.com/the-joy-of-expect-tests/) because I keep seeing references to it. Indeed, the blog post points to Cram as prior art in this space. I also think Ian Henry's article "My Kind of REPL" (https://ianthehenry.com/posts/my-kind-of-repl/) makes a very convincing case for why expect tests are useful.
Jane Street has published their `ppx_expect` library for OCaml and you can use it today: https://github.com/janestreet/ppx_expect. For other languages, here's an incomplete list of similar libraries I'm vaguely aware of:
- Rust: https://insta.rs/, https://github.com/boujeepossum/k9
-
Rust Testing discussion
Rust Testing related posts
-
Testing in Rust: from cargo test to mocking HTTP calls
-
Top 10 Non-Human Identity Security Tools and Platforms for 2026
-
A Markdown-based test suite
-
Proptest: Property-based testing for Rust (inspired by Hypothesis)
-
The Next Modern Test By pytest-modern
-
Systems Correctness Practices at Amazon Web Services
-
Show HN: Voiden – a free, offline, Git-native API Client
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 Jun 2026
Index
What are some of the best open-source Testing projects in Rust? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | hurl | 19,003 |
| 2 | foundry | 10,408 |
| 3 | nextest | 3,042 |
| 4 | tarpaulin | 2,981 |
| 5 | quickcheck | 2,766 |
| 6 | proptest | 2,161 |
| 7 | afl.rs | 1,826 |
| 8 | rstest | 1,562 |
| 9 | tempfile | 1,437 |
| 10 | cargo-mutants | 1,193 |
| 11 | testcontainers-rs | 1,082 |
| 12 | cargo-hack | 836 |
| 13 | Mockito | 777 |
| 14 | siteone-crawler | 768 |
| 15 | maelstrom | 719 |
| 16 | static-assertions | 663 |
| 17 | faux | 484 |
| 18 | stainless | 456 |
| 19 | fuzzcheck-rs | 453 |
| 20 | keyscope | 411 |
| 21 | casr | 355 |
| 22 | k9 | 351 |
| 23 | serial_test | 290 |