#async #derive #test #testing #futures #macro

async-test-derive

Procedure macro to run async fn as test

3 releases (1 stable)

1.0.0 Mar 16, 2020
0.1.1 Feb 3, 2020
0.1.0 Feb 3, 2020

33 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

6KB

Friendly, test runner for async function

To run a test, annotate as below:

#[test_async]
async fn test_sum() -> Result<(),std::io::Result> {
    assert(true,"I am alive);
    Ok(())
}

Dependencies

~0.4–0.8MB
~21K SLoC