Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 6793
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.049
Fixed in: (no value)



Subject: Detect trivial tests, option to not report or notify author
When testing a module with a trivial test, e.g. use SomeModule; ok(1); where the results match /Files=1, Tests=1,/ it would be nice to have an option not to send a test report, or even better, to send an alert to the author that the module appears to have trivial tests.
[RRWO - Tue Jul 13 21:15:09 2004]: Show quoted text
> I have added a simple patch to CPANPLUS::Internals::Report to > demonstrate how to do this. It is attached to this comment. > > If the tests pass, but the buffer contains /Files=1, Tests=1,/, then a > modified message is sent notifying the module author that the tests > are > trivial and a more robust message would be preferred.
I've given this a great deal of thought and decided not to go with the patch; this would make CPANPLUS too much of a 'code police' which it really isn't. we care about test results in the manner of 'PASS/FAIL/UNKNOWN/' but not in 'how good was the PASS' or 'did you really cover everything'. Although i think these metrics are very important, they might best be analyzed by pjpc's cpancover project, or discussed on the perl-qa list, as an addition perhaps to the testers data available there... You can find the perl-qa list here: http://lists.perl.org/showlist.cgi?name=perl-qa Regards,