Crate test_collector_derive
source · [−]Expand description
Usage
use test_collector_derive::collect_test;
#[collect_test]
#[test]
pub fn sync_test_success() {
println!("Executed sync!");
assert_eq!(true, true);
}
#[collect_test(async)]
#[actix_web::test]
pub async fn async_test_success() {
let client = reqwest::Client::builder()
.build()
.expect("error during client build");
let response = client.get("http://localhost:9090/").send().await;
assert!(response.is_ok());
}