From 6170650b474254b7022496385aa675f9fee47740 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 26 Oct 2021 21:25:54 +0900 Subject: [PATCH] Always display path of test files --- src/message.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/message.rs b/src/message.rs index 25181a0..3b58adc 100644 --- a/src/message.rs +++ b/src/message.rs @@ -51,14 +51,7 @@ pub(crate) fn ok() { } pub(crate) fn begin_test(test: &Test, show_expected: bool) { - let display_name = if show_expected { - test.path - .file_name() - .unwrap_or_else(|| test.path.as_os_str()) - .to_string_lossy() - } else { - test.path.as_os_str().to_string_lossy() - }; + let display_name = test.path.as_os_str().to_string_lossy(); print!("test "); term::bold();