Skip to content

Commit 2bdbf1d

Browse files
committed
when a test fails, repeat the target after the failure report
1 parent 3670823 commit 2bdbf1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::ffi::OsString;
44
use std::num::NonZeroUsize;
55
use std::path::{Path, PathBuf};
66
use std::{env, process::Command};
7+
use ui_test::color_eyre::eyre::Context;
78
use ui_test::{color_eyre::Result, Config, Match, Mode, OutputConflictHandling};
89
use ui_test::{status_emitter, CommandBuilder, Format, RustfixMode};
910

@@ -231,6 +232,7 @@ fn ui(
231232
WithoutDependencies => false,
232233
};
233234
run_tests(mode, path, target, with_dependencies, tmpdir)
235+
.with_context(|| format!("ui tests in {path} for {target} failed"))
234236
}
235237

236238
fn get_target() -> String {

0 commit comments

Comments
 (0)