#flaky #testing #macro #detail #run

macro flaky_test_impl

implementation detail of the flaky_test macro

1 unstable release

0.2.2 Jan 17, 2024

#11 in #flaky

Download history 1581/week @ 2025-10-16 1916/week @ 2025-10-23 2381/week @ 2025-10-30 1518/week @ 2025-11-06 2132/week @ 2025-11-13 3113/week @ 2025-11-20 2855/week @ 2025-11-27 3988/week @ 2025-12-04 2334/week @ 2025-12-11 1077/week @ 2025-12-18 707/week @ 2025-12-25 1345/week @ 2026-01-01 2102/week @ 2026-01-08 1926/week @ 2026-01-15 2220/week @ 2026-01-22 2247/week @ 2026-01-29

8,653 downloads per month
Used in 5 crates (via flaky_test)

MIT license

7KB
157 lines

flaky_test

crates docs

This attribute macro will register and run a test 3 times, erroring only if all three times fail. Useful for situations when a test is flaky.

#[flaky_test::flaky_test]
fn my_test() {
  assert_eq!(1, 2);
}

Dependencies

~1.5MB
~40K SLoC