3 ms·
"Any refactoring done is safe from regressions, because of your comprehensive test suite. " With the right tests this works great. I have also seen the opposit
by maxxxxx 9y ago
"Any refactoring done is safe from regressions, because of your comprehensive test suite. "
With the right tests this works great. I have also seen the opposite where a test suite was extensive and tested the last details of the code. Then the refactor needed more time to figure out what the tests are doing than the actual refactoring. As often, moderation is the key to success.
- hacker_9 9y agoUnit tests should follow a simple 'Arrange, Act, Assert' structure and test one single thing, described in it's title. I agree anything too complicated starts to defeat the point, especially when we are mainly after a quick feedback loop.