|
|
|
|
|
by fivea
1527 days ago
|
|
> It's not? Writing unit test is all about minimizing side effects and interaction with other systems. Not really. Writing unit tests is all about verifying behavior from combinations of inputs, and side effects are inputs as well. You can write unit tests that inject delays and timeouts and retries and throw exceptions under specific circumstances. |
|
Well, except it's not. If you use a side effect, you have to account for it in some way via mocks or whatever.