From 1d5d4d14bff248cd764af86a82035491b6e8f12b Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Mon, 25 Aug 2025 20:18:48 +0300 Subject: [PATCH] Edit how CLI reporter prints --- crates/core/src/main.rs | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/crates/core/src/main.rs b/crates/core/src/main.rs index 43ae3be..dfbe641 100644 --- a/crates/core/src/main.rs +++ b/crates/core/src/main.rs @@ -546,22 +546,30 @@ async fn start_cli_reporting_task(reporter: Reporter) { number_of_successes += 1; writeln!( buf, - "{}{}Case Succeeded{}{} - Steps Executed: {}", - GREEN, BOLD, BOLD_RESET, COLOR_RESET, steps_executed + "{}{}Case Succeeded{} - Steps Executed: {}{}", + GREEN, BOLD, BOLD_RESET, steps_executed, COLOR_RESET ) } TestCaseStatus::Failed { reason } => { number_of_failures += 1; writeln!( buf, - "{}{}Case Failed{}{} - Reason: {}", - RED, BOLD, BOLD_RESET, COLOR_RESET, reason + "{}{}Case Failed{} - Reason: {}{}", + RED, + BOLD, + BOLD_RESET, + reason.trim(), + COLOR_RESET, ) } TestCaseStatus::Ignored { reason, .. } => writeln!( buf, - "{}{}Case Ignored{}{} - Reason: {}", - GREY, BOLD, BOLD_RESET, COLOR_RESET, reason + "{}{}Case Ignored{} - Reason: {}{}", + GREY, + BOLD, + BOLD_RESET, + reason.trim(), + COLOR_RESET, ), }; }