3 ms·
The way I see it, if your tests are dependent on mutable global state, they are bad. If they are not dependent on mutable global state, then other tests can't b
by toolz 4y ago
The way I see it, if your tests are dependent on mutable global state, they are bad. If they are not dependent on mutable global state, then other tests can't break your tests.
I'm not confident enough to say there aren't exceptions here though.
- andreareina 4y agoWith mutable global state I wouldn't be too sure it's the tests that are the problem.
- djur 4y agoIf your tests aren't accounting for the effects of mutable global state on the code under test they are bad tests. Randomization helps catch bad tests.