Hacker News new | past | comments | ask | show | jobs | submit login

How much wasted effort is expended by testing policies? Consider, for instance, managing development by setting an arbitrary target % coverage for unit tests. As team refactors code, unit tests will break, and the test coverage requirement will compel someone to revisit old tests and refactor them. Refactor more code and the same tests are breaking again! Must refactor the tests -- yet again -- to reflect the latest changes. Test coverage policies are very costly..

On the other hand, unit testing does present some benefits. Consider a function that cannot be easily unit tested. This tells you that it's probably too complex and would benefit by refactoring into more manageable parts. Also, business logic unit tests are beneficial.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: