#retry #again #rerun #flaky

macro fickle-macros

Tools for handling fickle (flaky) tests in rust

3 unstable releases

0.3.0 Oct 2, 2024
0.2.1 Sep 30, 2024
0.2.0 Sep 30, 2024

#7 in #flaky

Download history 1/week @ 2024-11-16 15/week @ 2024-12-07 1/week @ 2024-12-14 6/week @ 2025-02-01 348/week @ 2025-02-08 277/week @ 2025-02-15 259/week @ 2025-02-22 334/week @ 2025-03-01

1,220 downloads per month
Used in 3 crates (via fickle)

GPL-3.0-only

15KB
154 lines

fickle

A macro for handling fickle (flaky) tests in rust.

By default, it will re-run your test 1 time, if the first time fails.

#[test]
#[fickle]
fn my_test() {
  // your test here
}

You can specify more runs like so

#[test]
#[fickle(retries=3)]
fn my_test() {
  // your test here
}

Dependencies

~200–630KB
~15K SLoC