Add case status information to the report

This commit is contained in:
Omar Abdulla
2025-08-24 23:38:50 +03:00
parent 4f55e8968d
commit 5d9075b389
3 changed files with 173 additions and 22 deletions
+24 -2
View File
@@ -472,6 +472,22 @@ where
let leader_node = leader_nodes.round_robbin();
let follower_node = follower_nodes.round_robbin();
test.reporter
.report_leader_node_assigned_event(
leader_node.id(),
L::config_id(),
leader_node.connection_string(),
)
.expect("Can't fail");
test.reporter
.report_follower_node_assigned_event(
follower_node.id(),
F::config_id(),
follower_node.connection_string(),
)
.expect("Can't fail");
let reporter = test.reporter.clone();
let result = handle_case_driver::<L, F>(
test,
args,
@@ -481,8 +497,14 @@ where
)
.await;
// TODO: We need to report the case success and failure in here.
let _ = result;
match result {
Ok(steps_executed) => reporter
.report_test_succeeded_event(steps_executed)
.expect("Can't fail"),
Err(error) => reporter
.report_test_failed_event(error.to_string())
.expect("Can't fail"),
}
}
},
))