Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denoland/flaky_test

atttribute macro for running a flaky test multiple times
https://github.com/denoland/flaky_test

Last synced: about 2 months ago
JSON representation

atttribute macro for running a flaky test multiple times

Awesome Lists containing this project

README

        

# flaky_test

[![crates](https://img.shields.io/crates/v/flaky_test.svg)](https://crates.io/crates/flaky_test)
[![docs](https://docs.rs/flaky_test/badge.svg)](https://docs.rs/flaky_test)

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.

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