News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration by maxxxxx on Friday October 27, 2017 @09:07AM (#15567892)
"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.

Re:Write tests. Not too many. Mostly integration by hacker_9 on Friday October 27, 2017 @09:22AM (#15567986)
Unit 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.