Skip to content

Commit

Permalink
Add curl debug command to HTML report
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Nov 8, 2024
1 parent fc1634d commit 9c91fe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/hurl/src/report/html/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ fn get_entry_html(entry: &EntryResult, entry_index: usize) -> String {
let mut text = String::new();
text.push_str(&format!("<summary>Entry {entry_index}</summary>"));

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
Expand Down

0 comments on commit 9c91fe8

Please sign in to comment.