diff options
| author | Tobias Schmitz <tobiasschmitz2001@gmail.com> | 2025-05-20 14:57:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 12:57:19 +0000 |
| commit | 91cadbf307f52effa8246192cc33d5695d87ae14 (patch) | |
| tree | e210a32994a3f0edff6c80c81d9ad45905b320cd /tests | |
| parent | d204a28818c78cbbd66e2ffcc8d2e7a8c57b411d (diff) | |
Underline file path of failed test (#6281)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/collect.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/collect.rs b/tests/src/collect.rs index 33f4f736..84af04d2 100644 --- a/tests/src/collect.rs +++ b/tests/src/collect.rs @@ -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) } } |
