4 releases

0.2.1 Aug 1, 2024
0.2.0 Mar 26, 2024
0.1.1 Mar 26, 2024
0.1.0 Mar 21, 2024

#402 in Asynchronous

Download history 1/week @ 2024-07-24 117/week @ 2024-07-31 1/week @ 2024-08-07 10/week @ 2024-09-11 8/week @ 2024-09-18 3/week @ 2024-09-25 3/week @ 2024-10-02

198 downloads per month

MIT license

10KB
181 lines

proptest_async

Docs Latest

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

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

async executor

By default, the macro uses async_std as the executor.

You can select tokio (single-threaded) instead with:

[dependencies]
proptest_async = { version = "*", default-features = false, features = ["tokio"] }

upstream

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

Dependencies

~3–13MB
~171K SLoC