From 412f5d74d0a94a8d488903dde555fffd4c6d3546 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 14 May 2025 09:34:52 -0300 Subject: [PATCH] test: add command and status to assertion messages --- src/tests.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests.rs b/src/tests.rs index 794afcb..a9a0d1b 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -46,7 +46,12 @@ mod tests { // Create first item with tag_a and tag let cmd = format!("echo {} | {} tag tag_a tag", INPUT_A, env); let output = run_sh(cmd.as_str()); - assert!(output.status.success(), "Command failed: {}", INPUT_A); + assert!( + output.status.success(), + "Command failed: {} {}", + cmd, + output.status + ); // Create second item with tag_b and tag let cmd = format!("echo {} | {} tag tag_b tag", INPUT_B, env);