Would it be useful for Module::Build to warn you if "perl Build dist" is run without a successful run of these tests?

 $ perl Built dist
KWALITEE WARNING: It's recommended you run "perl Build disttest" beforehand. KWALITEE WARNING: It's recommended you run "perl Build testpod" beforehand.
 ...
 $ perl Build testpod && perl Build disttest
 $ perl Build dist
 ...

Module::Build could write some flag to indicate that a test were done and how successful it was. The flag probably should include a checksum of all files in the distribution to allow verification that the test was run on the current copy of the files. If your t/*.t files themselves handle these kwalitee tests (e.g. as a substitute for testpod), then these flags should get updated when running the t/*.t tests as well. If the flags are included in the distribution itself, they could be read by CPANTS to address problems like the below:

Ricardo SIGNES wrote:

Test::Pod::Coverage needs to evaluate the Perl code it is
coverage-testing.  It has been said that no CPANTS test will do that.

--davidm

Reply via email to