2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#1549 in Rust patterns

Download history 1515/week @ 2024-10-08 1149/week @ 2024-10-15 847/week @ 2024-10-22 1007/week @ 2024-10-29 870/week @ 2024-11-05 576/week @ 2024-11-12 827/week @ 2024-11-19 802/week @ 2024-11-26 965/week @ 2024-12-03 1368/week @ 2024-12-10 1100/week @ 2024-12-17 519/week @ 2024-12-24 599/week @ 2024-12-31 796/week @ 2025-01-07 1158/week @ 2025-01-14 1092/week @ 2025-01-21

3,741 downloads per month
Used in fewer than 14 crates

MIT license

4KB

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

~2.5MB
~53K SLoC