From 9c91fe8dba0405373feb014aa945ffba97301fbe Mon Sep 17 00:00:00 2001 From: Jean-Christophe Amiel Date: Fri, 8 Nov 2024 22:39:40 +0100 Subject: [PATCH] Add curl debug command to HTML report --- packages/hurl/src/report/html/run.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/hurl/src/report/html/run.rs b/packages/hurl/src/report/html/run.rs index db55c78d836..ca5836e3702 100644 --- a/packages/hurl/src/report/html/run.rs +++ b/packages/hurl/src/report/html/run.rs @@ -76,6 +76,10 @@ fn get_entry_html(entry: &EntryResult, entry_index: usize) -> String { let mut text = String::new(); text.push_str(&format!("Entry {entry_index}")); + let cmd = entry.curl_cmd.to_string(); + let table = new_table("Debug", &[("Command", &cmd)]); + text.push_str(&table); + if !entry.captures.is_empty() { let mut values = entry .captures