Update error message for non-descriptive test files

This commit is contained in:
Yuri Astrakhan 2026-02-05 22:24:22 -05:00 committed by GitHub
parent 1dfdfe8149
commit 62d0533eae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -302,7 +302,7 @@ fn deny_new_nondescriptive_test_names(
&& !stripped_path.starts_with("ui/issues/")
{
check.error(format!(
"the name of the file `tests/{stripped_path}` must begin with a descriptive prefix, consider `{{reason}}-issue-{issue_n}.rs`",
"the name of the file `tests/{stripped_path}` is not descriptive, consider renaming to `{{reason}}-issue-{issue_n}.rs`",
issue_n = &test_name[1],
));
}