8 ms·
I 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 li
by robertclaus 3y ago
I 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?"