#times #flaky-test

dev flaky_test

atttribute macro for running a flaky test multiple times

2 unstable releases

0.2.2 Jan 17, 2024
0.1.0 Aug 11, 2021

#424 in Testing

Download history 1332/week @ 2024-12-15 631/week @ 2024-12-22 540/week @ 2024-12-29 759/week @ 2025-01-05 1215/week @ 2025-01-12 981/week @ 2025-01-19 795/week @ 2025-01-26 672/week @ 2025-02-02 700/week @ 2025-02-09 813/week @ 2025-02-16 767/week @ 2025-02-23 606/week @ 2025-03-02 604/week @ 2025-03-09 918/week @ 2025-03-16 758/week @ 2025-03-23 1016/week @ 2025-03-30

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