Registry / testing / expect-test

expect-test

JSON →
library1.5.1rscratesunverified

Minimalistic snapshot testing library for Rust.

# Cargo.toml [dependencies] expect-test = "1.5.1"
INSTALL
IMPORT
SIG · EXPECT-TEST
E
expect-test
testingrustv1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

expect
use expect_test::expect;

Snapshot testing with expect! macro.

use expect_test::expect; fn main() { let actual = "hello world"; let expected = expect!["hello world"]; expected.assert_eq(&actual); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Resources
expect-test — cargo add expect-test · libregistry