test_retry 0.1.0

Atttribute macro for retrying a test multiple times
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 6.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 276.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • caspervonb/test_retry
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • caspervonb

This attribute macro will retry a test multiple times, failing only if all attempts fail. Useful for situations when a test is known to be flaky due to external conditions.

use test_retry::retry;

#[test]
#[retry]
fn my_test() {
  assert_eq!(1, 2);
}