Show quoted text>>>>> On Sat, 14 Jul 2007 14:19:45 -0400, "Tom Moertel via RT" <bug-Test-LectroTest@rt.cpan.org> said:
Show quoted text
Show quoted text > On Sat Jul 14 13:31:50 2007, ANDK wrote:
>> Now that I have tested T:LT 152 times and have two failures I believe I
>> should let you know. Both fails were with different bleadperls and both
>> were not reproducable. They look like real random ressults
Show quoted text > Random failures now and again are to be expected when testing
> LectroTest's generators because I must necessarily test not only the
> generator code but also the underlying Perl random number generator; if
> either are broken LT cannot do its job.
Show quoted text > Unfortunately, to test for randomness, you need to take samples and make
> statistical inferences. The more samples you take, the more unlikely a
> false result becomes. So there's a tradeoff: you can make false
> failures (such as you encountered) less likely, but only by making the
> tests run much more slowly.
Show quoted text > Already, the LT generator tests are painfully slow.
Agreed:)
Show quoted text > Given that the
> false-failure rate is under 1-percent, I'd rather make people re-run the
> suite on the occasional failure than I would make *everybody* who runs
> the tests suffer with yet-even-slower tests.
Show quoted text > See the documentation for the generator tests for more:
Show quoted text > $ perldoc t/gens.t
Show quoted text > Important: This test suite relies upon a number of randomized tests
> and statistical inferences. As a result, there is a small
> probability (about 1 in 200) that some part of the suite will fail
> even if everything is working properly. Therefore, if a test
> fails, re-run the test suite to determine whether the supposed
> problem is real or just a rare instance of the Fates poking fun at
> you.
How about printing this text out when the test fails? That would make
the person running the test aware that what's up. The installer is not
always the same person who has read the documentation.
Thanks for your time,
--
andreas