fickle-macros 0.3.0

Tools for handling fickle (flaky) tests in rust.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 43.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 288.16 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rcrisanti

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
}