Re:Why Most Unit Testing Is Waste [pdf]
by lmm on Tuesday October 31, 2017 @08:54AM
(#15592835)
> side effects can be encapsulated, abstracted, and injected to create testable code in "side-effect" heavy situations.
Absolutely, but at that point you're moving the side effect out to the boundary and separating it from the logic. Then you can unit-test the logic away from the side effect (but the test of the side effect itself still has to be an integration test).
Absolutely, but at that point you're moving the side effect out to the boundary and separating it from the logic. Then you can unit-test the logic away from the side effect (but the test of the side effect itself still has to be an integration test).