Skip to content

Commit

Permalink
Use rstest_reuse to split tests further
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Oct 10, 2023
1 parent 1ebc5e3 commit dec2a2d
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 330 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ time-macros = { path = "time-macros", version = "=0.2.15" }

criterion = { version = "0.5.1", default-features = false }
deranged = { version = "0.3.7", default-features = false }
itertools = "0.11.0"
itoa = "1.0.1"
js-sys = "0.3.58"
libc = "0.2.98"
Expand All @@ -18,6 +17,7 @@ quickcheck = { version = "1.0.3", default-features = false }
quickcheck_macros = "1.0.0"
rand = { version = "0.8.4", default-features = false }
rstest = { version = "0.18.2", default-features = false }
rstest_reuse = "0.6.0"
# ^1.0.184 due to serde-rs/serde#2538
serde = { version = "1.0.184", default-features = false }
serde_json = "1.0.68"
Expand Down
4 changes: 4 additions & 0 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ require_all_features! {
/// unexpectedly failing.
static SOUNDNESS_LOCK: Mutex<()> = Mutex::new(());

// Required by the crate for technical reasons.
#[allow(clippy::single_component_path_imports)]
use rstest_reuse;

/// Construct a non-exhaustive modifier.
macro_rules! modifier {
($name:ident $({
Expand Down
Loading

0 comments on commit dec2a2d

Please sign in to comment.