3 ms·
Why do people still write unit tests? You are stabbing in the dark, in a very nonrandom way, and you're doing all the donkey-work manually. If you care about t
by JulianMorrison 17y ago
Why do people still write unit tests? You are stabbing in the dark, in a very nonrandom way, and you're doing all the donkey-work manually.
If you care about testing, use a quickcheck clone. Bonus: it's much easier to refactor tests when you're saying "it takes an X and a Y" instead of "it does this and then that". And if you discover a bug caused by a corner case of Y and add it to your Y simulator, then everything that takes a Y gets tested with that corner case.