#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

#2158 in Asynchronous

Download history 47/week @ 2024-07-22 10/week @ 2024-07-29 1/week @ 2024-08-05 8/week @ 2024-08-12 2/week @ 2024-08-19 28/week @ 2024-09-02 2/week @ 2024-09-09 9/week @ 2024-09-16 31/week @ 2024-09-23 102/week @ 2024-09-30 8/week @ 2024-10-07 8/week @ 2024-10-14 10/week @ 2024-10-21 17/week @ 2024-10-28 23/week @ 2024-11-04

58 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
~37K SLoC