Skip to content

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

License

Notifications You must be signed in to change notification settings

botanica-consulting/lite-async-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages