4 ms·
A Few Words on Testing
- deleted 3y ago[deleted]
- robertclaus 3y agoI find this perspective very in tune with my own experiences. Tests don't mean your code behaves correctly from an outside perspective - just that it behaves like you meant it to. I've caught plenty of issues in code review that had perfectly reasonable tests validating the developers bad assumptions.
- locopati 3y agoWhat's nice about tests is that well-written ones make those assumptions clear. Then, in code review, it's easier to say "what about this scenario? what then?"