Testing & Mocking Packages
Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).
Packages in Testing & Mocking
Kind
Sort:Used by Most Apps
tempfile
A secure, cross-platform Rust library for temporary files and directories that clean up automatically on drop.
Criterion.rs
Statistics-driven microbenchmarking for Rust that reliably detects performance changes.
similar
A dependency-free Rust diffing library with Myers, Patience, Histogram, and LCS algorithms
libfuzzer-sys
Rust bindings to LLVM's libFuzzer for coverage-guided fuzz testing
Testcontainers for Rust
Integration-test against throwaway Docker containers from within Rust
enigo
Cross-platform keyboard and mouse input simulation for Rust on Linux, macOS, and Windows.
approx
Approximate floating point equality comparisons and assertions for Rust
libtest-mimic
Build a custom Rust test harness that looks and behaves like rustc's built-in test runner
afl.rs
Fuzz-test Rust code with AFLplusplus using the afl crate's fuzz macros and cargo-afl tooling.
codspeed-criterion-compat
Drop-in Criterion.rs compatibility layer that runs Rust benchmarks under CodSpeed.
datatest-stable
A Rust test harness for file-driven, data-driven tests that runs on stable Rust.
allocation-counter
A Rust library that runs code while counting heap allocations, for profiling and allocation-budget assertions.
antithesis-sdk-rust
Rust SDK for the Antithesis autonomous testing platform: define test-property assertions, request platform-controlled randomness, and mark lifecycle milestones for fault-injection runs.