Jakob Illeborg Pagter <[EMAIL PROTECTED]> writes: > Thomas Jakobsen skrev: > >> As Martin points out, it will be inconvenient or impossible to >> parameterize some tests like this. But for others, it will be just >> as easy, and in these cases we get a lot of extra testing for >> "free" by doing it, since it will enable us to run them with many >> parameters. > > Why don't you just parameterize tests by default and then let the > test throw an error if the parameters are not within a defined legal > range?
No reason, I guess... By grouping tests in different classes we can already obtains some of the wanted flexibility: the test_broadcast method is in the ActiveRuntimeTest class because this class specifies that we need 4 players. We could change this number to be a threshold factor, something like threshold_factor = 3 which would mean that we need num_playes > threshold_factor * threshold which with threshold = 1 gives the four players we had before. But given such a factor, it would be easy to generate test cases with varying number of players and threshold. -- Martin Geisler _______________________________________________ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk