Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Testing internals forces future programmers of the codebase to maintain those invariants. All code is a liability.


Not in my experience. Convincing people to delete tests that only assert one invariant when the business changes its mind is easy. It’s the ones that have residual value after removing one invariant that trap people into spinning their wheels.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: