2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#1220 in Rust patterns

Download history 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 542/week @ 2024-11-11 830/week @ 2024-11-18 796/week @ 2024-11-25 937/week @ 2024-12-02

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