-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 19/07/13 08:20 AM, Fabio Erculiani wrote: > On Fri, Jul 19, 2013 at 1:40 PM, Diego Elio Pettenò > <flamee...@flameeyes.eu> wrote: >> [...] > >> And non-deterministic tests are stupid, useless, broken tests. > > Amen. Even though there is that 1% of cases in where you want to > have non-deterministic tests. For instance, if you want to run the > same test thousands of times and randomly pick an initial state to > see if you spot a "scenario" in where you have problems > (concurrency problems)... :-)
You still want those tests to be deterministic though -- ie, imo it's better to run through a very large set of test-cases in some sort of repeatable order, than to rely on randomization. At least then you know the cases where it succeeds and the cases where it is unknown/untested. ..but this is getting off-topic. :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iF4EAREIAAYFAlHpPGwACgkQ2ugaI38ACPD4TgD+MQJwHU4U6mT98Gz28WzuCK0Q U6P5h1PzJVWdU1Zpd58A/R1TEhIXMX2P/NV3w2wHerdVQKyrX2/CqjQyHTKhd7AC =jUtf -----END PGP SIGNATURE-----