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

#782 in Testing

Download history 479/week @ 2024-09-30 24/week @ 2024-10-07

503 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

~240–680KB
~16K SLoC