3 ms·
I've come to disagree with the idea that a test is for only one part of the code. In the real world if a test breaks you know what broke it: the last change you
by bluGill 5y ago
I've come to disagree with the idea that a test is for only one part of the code. In the real world if a test breaks you know what broke it: the last change you made. Thus it doesn't matter in the worst case, and in the best case it warns you of a weird situation more isolated tests wouldn't have caught.
There is such a thing as tests that fail randomly of course. Investigate and fix them.