Testing

38 projects

Cargo's built-in test runner covers unit, integration and doc tests, and these tools fill the gaps. cargo-nextest runs each test in its own process, runs them in parallel more efficiently and gives clearer output, retries and JUnit reports, which helps on CI. insta adds snapshot testing: you assert against a stored value and review changes with cargo insta review instead of editing expected output by hand.

For mocking, mockall generates mock implementations from traits with expectations on calls and arguments, and faux mocks structs directly without introducing traits. httpmock spins up a local HTTP server for testing clients. fake-rs generates realistic fake data, serial_test forces specific tests to run one at a time, and test-log captures log and tracing output inside tests.

To check whether tests are any good, cargo-mutants changes your code and reports mutations that no test caught, and mutagen takes a similar approach. afl.rs connects the AFL fuzzer to Rust code, which is effective for parsers and decoders. A typical setup is nextest plus insta for everyday work, with fuzzing and mutation testing added for critical code.

googletest-json-serdeAssertions and Matchers

A collection of JSON matchers for googletest-rust, supporting paths, arrays, and objects.

googletest-json-serde0.5.3360/90d

cargo-crapby minikinCode Coverage

Finds complex, untested functions by combining cyclomatic complexity with LCOV coverage (the CRAP metric) and gates CI on the score

cargo-crap0.9.022.2k/90d updated today

426

supercovby supercorp-aiCode Coverage

Code quality and test coverage for coding agents: Jev scores each source file so the agent knows what to fix first

supercov4.19.0729/90d updated today

157

tarpaulinCode Coverage

A code coverage tool

cargo-tarpaulin0.37.5298.9k/90d

trustby japaricContinuous Integration

A Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows

v0.1.2Shellupdated 3y ago

1.3k

polishby AlKassFrameworks and Runners

Mini Testing/Test-Driven Framework

polish0.9.910/90d updated 2mo ago

60

cargo-testdoxby bitfieldFrameworks and Runners

Turns your Rust tests into docs

cargo-testdox0.6.171/90d updated 3mo ago

21

cargo-dinghyFrameworks and Runners

A cargo extension to simplify running library tests and benches on smartphones and other small processor devices.

cargo-dinghy0.8.620.3k/90d

cucumberFrameworks and Runners

An implementation of the Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.

cucumber0.23.01.3m/90d

test-logby d-e-s-oFrameworks and Runners

A replacement of the #[test] attribute that initializes logging and/or tracing infrastructure before running tests.

test-log0.2.2110.9m/90d updated 1mo ago

163

demonstrateFrameworks and Runners

Declarative Testing Framework

demonstrate0.4.51.6k/90d

GoogleTest RustFrameworks and Runners

Powerful test assertion framework based on the C++ test library GoogleTest

googletest0.14.31.3m/90d

test-thatby hovinenFrameworks and Runners

An assertion library for Rust, based on GoogleTest Rust and from its original author.

test-that0.6.06.6k/90d updated 1d ago

108

instaby mitsuhikoFrameworks and Runners

A snapshot testing library for Rust.

insta1.49.033.1m/90d updated 10d ago

3k

nextestby nextest-rsFrameworks and Runners

Next-generation test runner for Rust with parallel test execution, faster test runs, advanced filtering, and rich output.

cargo-nextest0.9.1491.8m/90d updated today

3.4k

playwright-rustby padamsonFrameworks and Runners

Rust bindings for Microsoft Playwright: cross-browser end-to-end testing (Chromium, Firefox, WebKit) with auto-waiting locators and trace capture.

playwright-rs0.20.1157.9k/90d updated today

162

serial_testby palfreyFrameworks and Runners

Run tests serially, either as a whole or in named groups

serial_test4.0.134.8m/90d updated 20d ago

295

rltby wfxrFrameworks and Runners

A universal load testing framework, with real-time tui support.

rlt0.5.038.9k/90d updated 1mo ago

230

rstestFrameworks and Runners

Fixture-based test framework

rstest0.28.031.4m/90d

speculateFrameworks and Runners

An RSpec inspired minimal testing framework

speculate0.1.221.7k/90d

mockallby asomersMocking and Test Data

A powerful mock object library.

mockall0.15.030.8m/90d updated 12d ago

1.8k

fixtures-rsby bcheidemannMocking and Test Data

A proc macro for generating tests from fixtures using glob patterns

fixtures2.5.02.6k/90d updated 12mo ago

6

hodgepodgeby cmccombMocking and Test Data

Ready-made enum datasets and optional animal taxonomy for prototypes, tests, and teaching

hodgepodge0.4.151/90d updated 1mo ago

0

fake-rsby cksacMocking and Test Data

A library for generating fake data

fake5.1.04m/90d updated 1mo ago

1.2k

goldenfileby calderMocking and Test Data

A library providing a simple API for goldenfile testing.

goldenfile1.11.01m/90d updated 7mo ago

45

httpmockMocking and Test Data

HTTP mocking

httpmock0.9.06.6m/90d updated today

675

mockiatoMocking and Test Data

A strict, yet friendly mocking library for unstable Rust 2018

mockiato0.9.64.9k/90d

mockitoMocking and Test Data

HTTP mocking

mockito1.7.29.8m/90d

mocktailby IBMMocking and Test Data

HTTP & gRPC server mocking for Rust

mocktail0.3.2255k/90d updated 6mo ago

88

fauxby nrxusMocking and Test Data

A library to create mocks out of structs.

faux0.1.13114.8k/90d updated 1y ago

483

mockforgeby SaaSy-SolutionsMocking and Test Data

API mock server for HTTP/OpenAPI, gRPC, GraphQL, WebSocket, Kafka, MQTT and AMQP, with data generation and latency/fault injection

mockforge-cli0.3.236873/90d updated today

12

synthby shuttle-hqMocking and Test Data

Generate database data declaratively.

v0.6.9updated 2y ago

1.5k

cargo-mutantsby sourcefrogMutation Testing

Finds inadequately tested code by injecting mutations, no source changes required.

cargo-mutants27.1.0353.4k/90d updated 1d ago

1.3k

mutagenby llogiqMutation Testing

A source-level mutation testing framework (nightly only)

mutagen0.1.2785/90d updated 3y ago

642

tridentby Ackee-BlockchainProperty Testing and Fuzzing

Fuzzing framework for Solana smart contracts with manually-guided testing, flow-based sequences, and property-based validation

0.12.0updated 5mo ago

408

proptestProperty Testing and Fuzzing

Property testing framework inspired by the Hypothesis framework for Python

proptest1.12.060.2m/90d

quickcheckProperty Testing and Fuzzing

A Rust implementation of QuickCheck

quickcheck1.1.013.3m/90d

afl.rsby rust-fuzzProperty Testing and Fuzzing

A Rust fuzzer, using AFL

afl0.18.2728.5k/90d updated 8d ago

1.9k

Built on the open rust-unofficial/awesome-rust list by its contributors, licensed CC0 1.0. Crate Atlas is an independent project, not affiliated with the list's maintainers.

About Synced Oct 21, 2026

© 2026 Crate Atlas

Esc

Type to search every entry. ↑↓ to move, Enter to open.