2 ms·
It isn't harder to test, necessarily. It's harder to unit-test. The distinction is important. Perhaps a single test that TDD people might call an "integration t
by sidlls 9y ago
It isn't harder to test, necessarily. It's harder to unit-test. The distinction is important. Perhaps a single test that TDD people might call an "integration test" suffices for that function. Often it does, in fact.
- AdeptusAquinas 9y agoAn integration test isn't a test for a function. Its a test of the system as a whole. On a per function level, more code in a function makes it harder to test, whether you are unit testing it or somehow manually testing it.
- sidlls 9y agoIt seems agreeing on what a "unit" is is elusive. If a function calls another function, for example, testing the caller without mocking the callee, I'm told often, is not truly a unit test.