Registry / testing / rstest-reuse

rstest-reuse

JSON →
library0.7.0rscratesunverified

Enables reuse of rstest attributes to apply the same test scenarios across multiple test functions.

# Cargo.toml [dependencies] rstest_reuse = "0.7.0"
INSTALL
IMPORT
SIG · RSTEST-REUSE
R
rstest-reuse
testingrustv0.7.0
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.

template
use rstest_reuse::template;

Define a reusable test template and apply it to a test function.

use rstest_reuse::{self, *}; #[template] #[rstest] #[case(1, 2)] fn my_template(#[case] a: i32, #[case] b: i32) {} #[apply(my_template)] fn test_addition(a: i32, b: i32) { assert_eq!(a + b, 3); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
rstest-reuse — cargo add rstest-reuse · libregistry