#test #async-test #fn #run #procedure #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

#17 in #procedure


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

~1.5MB
~39K SLoC