#rerun #retry #flaky #again

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


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

~195–620KB
~15K SLoC