2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#1634 in Rust patterns

Download history 831/week @ 2024-11-15 808/week @ 2024-11-22 726/week @ 2024-11-29 1164/week @ 2024-12-06 1357/week @ 2024-12-13 760/week @ 2024-12-20 575/week @ 2024-12-27 705/week @ 2025-01-03 1038/week @ 2025-01-10 1007/week @ 2025-01-17 927/week @ 2025-01-24 678/week @ 2025-01-31 718/week @ 2025-02-07 653/week @ 2025-02-14 921/week @ 2025-02-21 505/week @ 2025-02-28

2,942 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
~52K SLoC