News for hackers. Stuff that matters.
Re:Why Most Unit Testing Is Waste [pdf] by crdoconnor on Tuesday October 31, 2017 @08:23AM (#15592667)
>True, but you can have both types of tests

You can, but if your code is 95% coordination and 5% algorithmic, at most you'd want 5% unit tests.

>In many cases, you'd be better off separating the logic

Which is refactoring and if you're refactoring you need to have your code surrounded with tests to do it safely.

And, once you've done that, if you've already written integration tests for that logic and they perform acceptably well, there may be no point in rewriting the integration test as a unit test.

There are no comments on this comment yet.