safina-async-test

crates.io version license: Apache 2.0 unsafe forbidden pipeline status

A macro for running async fn tests.

It is part of safina, a safe async runtime.

Runs tests with safina_executor::block_on.

Features

Limitations

Examples

```rust use safinaasynctest::async_test;

[async_test]

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

```rust use safinaasynctest::async_test;

[async_test]

async fn test2() { safinaexecutor::increasethreadsto(1); safinaexecutor::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