lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: failure in TestTrieRangeQuery
Date Tue, 03 Feb 2009 23:11:19 GMT

: It's not repeatable, which is fine (because the test has randomness, which we
: should leave in there).

Side note: while i agree that test with randomness (ie: do lots of 
iterations over randomly selected data) are good to help find weird edge 
casees you might not otherwise think to explicitly code tests for, i've 
found by painful experience that generating the random data using a Random 
object with a hard coded seed is a good practice -- that way you get the 
benefits of hte Random data, but the test is also reproducable.

otherwise you get test failures that that you *think* you understand the 
cause of based on the stack trace, but without knowing exactly what input 
was used, you can't be sure you're fixing the "right" bug.



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message