4 ms·
There are usually different ways to design a system. Its often the case that designing the system such that it is easy to test (with little setup/teardown) has
by mollerhoj 4y ago
There are usually different ways to design a system. Its often the case that designing the system such that it is easy to test (with little setup/teardown) has other benefits too. E.g. It often indicates low coupling and a more simple design.
That being said, there can of course me other tradeoffs e.g. performance and even cases where simple test setups are downright impossible.