2 ms·
An 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,
by AdeptusAquinas 9y ago
An 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.