2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#1140 in Rust patterns

Download history 668/week @ 2024-07-22 887/week @ 2024-07-29 759/week @ 2024-08-05 795/week @ 2024-08-12 866/week @ 2024-08-19 783/week @ 2024-08-26 993/week @ 2024-09-02 939/week @ 2024-09-09 705/week @ 2024-09-16 666/week @ 2024-09-23 851/week @ 2024-09-30 1513/week @ 2024-10-07 1190/week @ 2024-10-14 857/week @ 2024-10-21 1000/week @ 2024-10-28 935/week @ 2024-11-04

4,130 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
~51K SLoC