3 ms·
> I have to say they're pretty amazing if you can get everyone on-board and writing good tests This is my main complaint about code coverage metrics. I want y
by hinkley 6y ago
> I have to say they're pretty amazing if you can get everyone on-board and writing good tests
This is my main complaint about code coverage metrics. I want you to be good at test writing before you write the bulk of your tests, not after. It’s hard enough to get people to write good ones, let alone go back and fix the messy ones they wrote badly (recall I said good tests are easier to replace than bad ones).
If you write a bad enough test it can take longer to fix it than throw it out and start over. But since you didn’t clearly capture the constraints the first time, do you dare delete it? What aren’t you testing after?