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