Crates.io | fickle-macros |
lib.rs | fickle-macros |
version | 0.3.0 |
source | src |
created_at | 2024-09-30 20:39:51.978245 |
updated_at | 2024-10-02 00:22:31.940232 |
description | Tools for handling fickle (flaky) tests in rust. |
homepage | |
repository | https://git.sr.ht/~ryguy/fickle |
max_upload_size | |
id | 1392169 |
size | 43,159 |
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
}