2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#536 in Rust patterns

Download history 751/week @ 2024-01-24 1228/week @ 2024-01-31 1521/week @ 2024-02-07 1205/week @ 2024-02-14 1019/week @ 2024-02-21 1490/week @ 2024-02-28 914/week @ 2024-03-06 849/week @ 2024-03-13 829/week @ 2024-03-20 1120/week @ 2024-03-27 1100/week @ 2024-04-03 1038/week @ 2024-04-10 983/week @ 2024-04-17 822/week @ 2024-04-24 937/week @ 2024-05-01 827/week @ 2024-05-08

3,755 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

~2MB
~48K SLoC