safina-async-test

A macro for running async fn tests.

Runs tests with safina::block_on.

Related crates: - safina - safe async runtime - safina-timer - safe async sleep functions - safina-async-test - macro for running async tests

Limitations

Examples

```rust

[async_test]

async fn test1() { anasyncfn().await.unwrap(); } ```

```rust

[async_test]

async fn test2() { safina::increasethreadsto(1); safina::spawn(Box::pin(backgroundtask())); asserteq!(42, do_request().await.unwrap()); } ```

Documentation

https://docs.rs/safina-async-test

Alternatives

Release Process

  1. Edit Cargo.toml and bump version number.
  2. Run ./release.sh

Changelog

TO DO

License: Apache-2.0