3 ms·
If you move functionality around between methods, or combining, breaking up methods, won't that mean fixing all those unit tests?
by Chris2048 11y ago
If you move functionality around between methods, or combining, breaking up methods, won't that mean fixing all those unit tests?
- mbrock 11y agoSure, and that fixing is the process of making sure that the code still works, and that you still have the test suite as a second client of the code. As with everything there are costs and benefits! A lot also depends on the quality of your tests. If the team doesn't care about test quality or doesn't know how to write good tests, you can easily get these big blobs of incomprehensible and tedious tests...