cross-test
Run Rust native and web tests with a single framework.
Platforms
- Web: web-sys
- Native: tokio
Example
use *;
cross_test_configure!;
async
Important issue
Because #[cross_test]
gets translated to #[tokio::test]
all the tests must be async
.
A custom proc-macro will be provided to select the test executor if the async
work is present or not.
Link for the issue: https://github.com/notdanilo/cross-test/issues/1