2 ms·
> A related issue is no one ever deletes tests. I think this is a huge problem. I’m not sure why it exists. “If we have more tests it will be harder to change
by travisjungroth 6y ago
> A related issue is no one ever deletes tests.
I think this is a huge problem. I’m not sure why it exists.
“If we have more tests it will be harder to change the code.” is an argument people make sincerely. Then... just delete the tests. If your argument against having these tests is you can imagine a point where they become a burden, just keep in mind that it’s really, really fast to delete code. “Untested” is a state we can get back to at any moment.
Maybe the tests will provide a lot of value until then. Maybe if we do a big refactor we’ll delete the old tests that are too low level and make new ones. That’s fine.
- hinkley 6y agoI joke that we should make the team watch one of those Hoarder TV shows, but it's a Tears of a Clown sort of situation. Try telling people that you're deleting a flaky test and they'll stop working on their current story to try to stop you. It's as predictable as the phases of the moon.