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

macro dev fluvio-test-derive

Procedure macro to run async fn as test

2 releases

0.1.1 May 8, 2021
0.1.0 Sep 21, 2020

#434 in Asynchronous

Download history 76/week @ 2021-02-23 121/week @ 2021-03-02 129/week @ 2021-03-09 155/week @ 2021-03-16 233/week @ 2021-03-23 159/week @ 2021-03-30 335/week @ 2021-04-06 209/week @ 2021-04-13 276/week @ 2021-04-20 97/week @ 2021-04-27 55/week @ 2021-05-04 141/week @ 2021-05-11 54/week @ 2021-05-18 39/week @ 2021-05-25 232/week @ 2021-06-01 406/week @ 2021-06-08

725 downloads per month
Used in 16 crates (via fluvio-future)

Apache-2.0

6KB
86 lines

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

~335–760KB
~19K SLoC