#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

#2302 in Asynchronous

Download history 11/week @ 2024-11-20 20/week @ 2024-11-27 2/week @ 2024-12-04 16/week @ 2024-12-11 21/week @ 2024-12-18 64/week @ 2025-01-01 57/week @ 2025-01-08 26/week @ 2025-01-29 13/week @ 2025-02-05 31/week @ 2025-02-12 22/week @ 2025-02-19 24/week @ 2025-02-26 41/week @ 2025-03-05

120 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
~38K SLoC