Packages

Testing & Mocking Packages

Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).

166 packages

Packages in Testing & Mocking

68Health
Library Cargo

tempfile

A secure, cross-platform Rust library for temporary files and directories that clean up automatically on drop.

1,468
Other
Used by 69
59Health
Library Cargo

Criterion.rs

Statistics-driven microbenchmarking for Rust that reliably detects performance changes.

460
Other
Used by 18
69Health
Library Cargo

similar

A dependency-free Rust diffing library with Myers, Patience, Histogram, and LCS algorithms

1,331
Apache 2.0
Used by 8
41Health
Library Cargo

libfuzzer-sys

Rust bindings to LLVM's libFuzzer for coverage-guided fuzz testing

267
Apache 2.0
Used by 6
69Health
Library Cargo

Testcontainers for Rust

Integration-test against throwaway Docker containers from within Rust

1,134
Apache 2.0
Used by 5
76Health
Library Cargo

enigo

Cross-platform keyboard and mouse input simulation for Rust on Linux, macOS, and Windows.

1,791
MIT
Used by 3
56Health
Library Cargo

approx

Approximate floating point equality comparisons and assertions for Rust

191
Apache 2.0
Used by 3
44Health
Library Cargo

libtest-mimic

Build a custom Rust test harness that looks and behaves like rustc's built-in test runner

149
MIT
Used by 2
59Health
Tool Cargo

afl.rs

Fuzz-test Rust code with AFLplusplus using the afl crate's fuzz macros and cargo-afl tooling.

1,848
Apache 2.0
Used by 1
60Health
Library Cargo

codspeed-criterion-compat

Drop-in Criterion.rs compatibility layer that runs Rust benchmarks under CodSpeed.

76
Other
Used by 1
71Health
Library Cargo

datatest-stable

A Rust test harness for file-driven, data-driven tests that runs on stable Rust.

54
Other
Used by 1
22Health
Library Cargo

allocation-counter

A Rust library that runs code while counting heap allocations, for profiling and allocation-budget assertions.

40
Apache 2.0
Used by 1
34Health
SDK Cargo

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.

36
MIT
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers