Louis-Philippe Véronneau pushed to branch master at lintian / lintian


Commits:
0d521eb7 by Emanuele Rocca at 2025-09-27T15:59:08+00:00
Suggest solution for tests without purpose

When adding a new test, it took me a while to find out that tests are
considered with no known purpose if they do not specify any expected results in
eval/hints, or a `Test-Against` field in eval/desc.

Explicitly suggest the solution if the problem is detected.

- - - - -


1 changed file:

- t/scripts/harness/diagnostic-value.t


Changes:

=====================================
t/scripts/harness/diagnostic-value.t
=====================================
@@ -83,7 +83,9 @@ my $missing = scalar @undeclared;
 my $total = scalar @testpaths;
 diag "$missing tests out of $total have no declared diagnostic value.";
 
-diag "Test with unknown purpose: $_" for @undeclared;
+diag
+"Test with unknown purpose: $_.\nAdd expected results to eval/hints, or 
'Test-Against' to eval/desc\nSee also: t/recipes/README."
+  for @undeclared;
 
 my $exceptions = List::Compare->new(\@undeclared, \@known_undeclared);
 my @unknown = $exceptions->get_Lonly;



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/0d521eb79cfa50606acebdf5b118d8928ca65991

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/0d521eb79cfa50606acebdf5b118d8928ca65991
You're receiving this email because of your account on salsa.debian.org.


Reply via email to