test_retry

Crates.iotest_retry
lib.rstest_retry
version0.1.0
sourcesrc
created_at2023-03-10 18:03:02.03989
updated_at2023-03-10 18:03:02.03989
descriptionAtttribute macro for retrying a test multiple times
homepage
repositoryhttps://github.com/caspervonb/test_retry
max_upload_size
id806609
size6,057
Casper Beyer (caspervonb)

documentation

README

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);
}
Commit count: 4

cargo fmt