Crates.io | proptest_async |
lib.rs | proptest_async |
version | 0.2.1 |
source | src |
created_at | 2024-03-21 02:26:10.100166 |
updated_at | 2024-08-01 09:03:14.643513 |
description | proptest macro supporting async tests |
homepage | https://public.git.npry.dev/proptest_async/about |
repository | https://public.git.npry.dev/proptest_async |
max_upload_size | |
id | 1181157 |
size | 9,449 |
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() {
// ...
}
}
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"] }
I'll probably eventually clean it up and upstream to the proptest project.