#async #test #async-std

macro async-std-test

Alternate implementation of the #[async_std::test] macro

4 releases

0.0.4 Apr 30, 2022
0.0.3 Apr 30, 2022
0.0.2 Apr 30, 2022
0.0.1 Apr 30, 2022

#1695 in Asynchronous

Download history 16/week @ 2023-07-27 8/week @ 2023-08-03 14/week @ 2023-08-10 12/week @ 2023-08-17 16/week @ 2023-08-24 7/week @ 2023-08-31 15/week @ 2023-09-07 10/week @ 2023-09-14 6/week @ 2023-09-21 12/week @ 2023-09-28 12/week @ 2023-10-05 13/week @ 2023-10-12 12/week @ 2023-10-19 23/week @ 2023-10-26 13/week @ 2023-11-02 30/week @ 2023-11-09

79 downloads per month
Used in unleash-yggdrasil

MIT license

5KB

async-std-test

Build status

An alternate implementation of #[async_std::test] which seeks to provide more useful error reporting feedback.

Available under the MIT License.


lib.rs:

An alternate method of running async fn tests. Meant for use with async-std.

The only export in this crate is a procedural macro, async_test. It can be invoked as follows:

#[async_test]
async fn my_test() -> std::io::Result<()> {
    assert_eq!(2 * 2, 4);
    Ok(())
}

Dependencies

~1MB
~31K SLoC