#re-run

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

#771 in Testing

Download history 413/week @ 2024-09-27 81/week @ 2024-10-04 23/week @ 2024-10-11 5/week @ 2024-10-18

123 downloads per month
Used in 2 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

~230–670KB
~16K SLoC