lite-async-test

Crates.iolite-async-test
lib.rslite-async-test
version0.1.3
sourcesrc
created_at2023-10-08 17:58:25.255309
updated_at2024-01-23 21:10:10.368501
descriptionAn #![async_test] wrapper using futures-lite, for easily setting up async tests in your crates/binaries.
homepage
repositoryhttps://github.com/botanica-consulting/lite-async-test
max_upload_size
id997339
size5,807
Alon Livne (0xa10)

documentation

README

lite-async-test

An #![async_test] wrapper using futures-lite, for easily setting up async tests in your crates/binaries.

This is implemented using a very simple procedural macro which wraps the original test with an synchronous version which uses futures-lite to execute.

This crate is suitable for usage in no_std targets.

To use, simply include

#[cfg(test)]
mod tests {
    use super::*;
    use lite_async_test::async_test;

    #[async_test]
    async fn some_test() {
        assert_eq!(value, get_value().await);
    }
}

Disclaimer: This library is not an official product, use freely at your own risk.

Commit count: 9

cargo fmt