#async-std #async #async-test #testing #test-macro

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

#1927 in Asynchronous

48 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

~1.5MB
~34K SLoC