proptest_async

Crates.ioproptest_async
lib.rsproptest_async
version0.2.1
sourcesrc
created_at2024-03-21 02:26:10.100166
updated_at2024-08-01 09:03:14.643513
descriptionproptest macro supporting async tests
homepagehttps://public.git.npry.dev/proptest_async/about
repositoryhttps://public.git.npry.dev/proptest_async
max_upload_size
id1181157
size9,449
Nathan Perry (mammothbane)

documentation

README

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.

Commit count: 0

cargo fmt