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

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
Download history 10/week @ 2020-11-09 5/week @ 2020-11-16 11/week @ 2020-11-23 9/week @ 2020-11-30 11/week @ 2020-12-07 2/week @ 2020-12-14 3/week @ 2020-12-21 4/week @ 2020-12-28 13/week @ 2021-01-04 5/week @ 2021-01-11 10/week @ 2021-01-18 5/week @ 2021-01-25 3/week @ 2021-02-01 8/week @ 2021-02-08 18/week @ 2021-02-15 8/week @ 2021-02-22

1,006 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.9MB
~22K SLoC