#proptest #testing #async #macro #supporting

proptest_async

proptest macro supporting async tests

3 unstable releases

0.2.0 Mar 26, 2024
0.1.1 Mar 26, 2024
0.1.0 Mar 21, 2024

#1837 in Rust patterns

Download history 122/week @ 2024-03-15 267/week @ 2024-03-22 55/week @ 2024-03-29 4/week @ 2024-04-05

448 downloads per month

MIT license

10KB
181 lines

proptest_async

This crate is an augmentation of the proptest::proptest! macro to work with async tests.

proptest_async::proptest! {
    #[test]
    async fn my_test() {
        // ...
    }
}

runtime

The macro currently hardcodes async_std as the executor. Could be easily converted to work with Tokio (e.g. using a feature switch), but I haven't gotten around to this.

upstream

I'll probably eventually clean it up and upstream to the proptest project.

Dependencies

~2–15MB
~163K SLoC