Rust Testing

Open-source Rust projects categorized as Testing

Top 23 Rust Testing Projects

  1. hurl

    Hurl, run and test HTTP requests with plain text.

    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.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. 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
  4. nextest

    A next-generation test runner for Rust.

    Project mention: The Next Modern Test By pytest-modern | news.ycombinator.com | 2025-07-20
  5. tarpaulin

    A code coverage tool for Rust projects

  6. quickcheck

    Automated property based testing for Rust (with shrinking).

    Project mention: Testing in Rust: from cargo test to mocking HTTP calls | dev.to | 2026-06-09

    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].

  7. proptest

    Hypothesis-like property testing for Rust

    Project mention: Testing in Rust: from cargo test to mocking HTTP calls | dev.to | 2026-06-09

    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].

  8. afl.rs

    🐇 Fuzzing Rust code with American Fuzzy Lop

  9. rstest

    Fixture-based test framework for Rust

  10. tempfile

    Temporary file library for rust

  11. cargo-mutants

    :zombie: Inject bugs and see if your tests catch them!

  12. testcontainers-rs

    A library for integration-testing against docker containers from within Rust.

  13. cargo-hack

    Cargo subcommand to provide various options useful for testing and continuous integration.

  14. Mockito

    HTTP mocking for Rust! (by lipanski)

    Project mention: Testing in Rust: from cargo test to mocking HTTP calls | dev.to | 2026-06-09

    mockito is the veteran. The shortest path from zero to a working test:

  15. 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-17

    cargo 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,

  16. 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)

  17. static-assertions

    Ensure correct assumptions about constants, types, and more in Rust

  18. faux

    Struct mocking library for Rust

  19. stainless

    Organized, flexible testing framework for Rust

  20. fuzzcheck-rs

    Modular, structure-aware, and feedback-driven fuzzing engine for Rust functions

  21. keyscope

    Keyscope is a key and secret workflow (validation, invalidation, etc.) tool built in Rust

  22. casr

    Collect crash (or UndefinedBehaviorSanitizer error) reports, triage, and estimate severity.

  23. k9

    Rust testing library

    Project mention: A Markdown-based test suite | news.ycombinator.com | 2026-05-21

    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

  24. serial_test

    Allows for the creation of serialised Rust tests

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Testing discussion

Log in or Post with

Rust Testing related posts

  • Testing in Rust: from cargo test to mocking HTTP calls

    3 projects | dev.to | 9 Jun 2026
  • Top 10 Non-Human Identity Security Tools and Platforms for 2026

    2 projects | dev.to | 5 Jun 2026
  • A Markdown-based test suite

    5 projects | news.ycombinator.com | 21 May 2026
  • Proptest: Property-based testing for Rust (inspired by Hypothesis)

    1 project | news.ycombinator.com | 24 Jan 2026
  • The Next Modern Test By pytest-modern

    2 projects | news.ycombinator.com | 20 Jul 2025
  • Systems Correctness Practices at Amazon Web Services

    8 projects | news.ycombinator.com | 30 May 2025
  • Show HN: Voiden – a free, offline, Git-native API Client

    5 projects | news.ycombinator.com | 28 May 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Rust is
the 3rd most popular programming language
based on number of references?