: 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to