3 ms·
My problems with unit testing: - There's no consensus on what a "unit" is. - There's no consensus on how much coverage is needed. - There's no consensus on w
by Veuxdo 5y ago
My problems with unit testing:
- There's no consensus on what a "unit" is.
- There's no consensus on how much coverage is needed.
- There's no consensus on what should be mocked.
- There's no consensus on if private methods should be tested independently, even though they obviously shouldn't.
- It violates "don't repeat yourself".
- The developers who write the tests usually write the code. Most bugs occur when developers overlook a use case. Do the math.