Skip to content

Atttribute macro for retrying a test multiple times

License

Notifications You must be signed in to change notification settings

caspervonb/test_retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

Atttribute macro for retrying a test multiple times

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages