leon0399 / flaky_test

atttribute macro for running a flaky test multiple times

Home Page:https://crates.io/crates/flaky_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flaky_test

crates docs

This attribute macro will register and run a test 3 times, erroring only if all three times fail. Useful for situations when a test is flaky.

#[flaky_test::flaky_test]
fn my_test() {
  assert_eq!(1, 2);
}

About

atttribute macro for running a flaky test multiple times

https://crates.io/crates/flaky_test

License:MIT License


Languages

Language:Rust 100.0%