3 ms·
He's right for most situations, but some things cannot be tested. Concurrency comes to mind. If I'm told that a particular deadlock or inconsistency cannot occu
by fauigerzigerk 19y ago
He's right for most situations, but some things cannot be tested. Concurrency comes to mind. If I'm told that a particular deadlock or inconsistency cannot occur, I prefer formal proof to a green light bulb on 100 test runs. The issue might only crop up at test run 9999999 using a particular cluster of particular CPUs.
- boucher 19y agoI too would want a proof, but its wrong to think that you can't test this. It might be difficult, but you absolutely can. Tracking down the order of things that causes the problem is where the troubles comes -- reproducing that order is easy using semaphores or something similar. Of course, for any moderately complex set of interactions, you won't be able to write tests to cover every possibility, which is exactly the point of the main detractor in this article.
- fauigerzigerk 19y agoSure you could simulate one particular order of things, but if you do that you no longer need tests because you're close to a proof anyway. Tracking down the order of things that causes a problem is debugging, not testing, in my view.