#flaky #test #testing #macro

macro dev flaky_test

atttribute macro for running a flaky test multiple times

1 unstable release

0.1.0 Aug 11, 2021

#998 in Procedural macros

Download history 1082/week @ 2022-06-14 831/week @ 2022-06-21 953/week @ 2022-06-28 1100/week @ 2022-07-05 998/week @ 2022-07-12 805/week @ 2022-07-19 981/week @ 2022-07-26 877/week @ 2022-08-02 926/week @ 2022-08-09 1316/week @ 2022-08-16 1193/week @ 2022-08-23 1269/week @ 2022-08-30 1454/week @ 2022-09-06 1294/week @ 2022-09-13 1307/week @ 2022-09-20 1063/week @ 2022-09-27

5,319 downloads per month
Used in fewer than 6 crates

MIT license

3KB

flaky_test

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

~220–630KB
~15K SLoC