Crates.io | test_retry |
lib.rs | test_retry |
version | 0.1.0 |
source | src |
created_at | 2023-03-10 18:03:02.03989 |
updated_at | 2023-03-10 18:03:02.03989 |
description | Atttribute macro for retrying a test multiple times |
homepage | |
repository | https://github.com/caspervonb/test_retry |
max_upload_size | |
id | 806609 |
size | 6,057 |
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);
}