2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#696 in Rust patterns

Download history 867/week @ 2024-03-14 797/week @ 2024-03-21 1159/week @ 2024-03-28 1055/week @ 2024-04-04 1115/week @ 2024-04-11 894/week @ 2024-04-18 821/week @ 2024-04-25 946/week @ 2024-05-02 866/week @ 2024-05-09 1026/week @ 2024-05-16 825/week @ 2024-05-23 629/week @ 2024-05-30 779/week @ 2024-06-06 857/week @ 2024-06-13 803/week @ 2024-06-20 545/week @ 2024-06-27

3,107 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
~49K SLoC