Underline file path of failed test (#6281)

This commit is contained in:
Tobias Schmitz 2025-05-20 14:57:19 +02:00 committed by GitHub
parent d204a28818
commit 91cadbf307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,8 @@ pub struct Test {
impl Display for Test {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
write!(f, "{} ({})", self.name, self.pos)
// underline path
write!(f, "{} (\x1B[4m{}\x1B[0m)", self.name, self.pos)
}
}