Crates.io | cross-test |
lib.rs | cross-test |
version | 0.1.6 |
source | src |
created_at | 2021-01-13 20:00:36.63073 |
updated_at | 2021-01-27 21:44:24.327471 |
description | Native and web testing in a single framework |
homepage | |
repository | https://github.com/notdanilo/cross-test |
max_upload_size | |
id | 341523 |
size | 15,721 |
Run Rust native and web tests with a single framework.
use cross_test::prelude::*;
cross_test_configure!();
#[cross_test]
async fn it_works() {
assert_eq!(2 + 2, 4);
}
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