3 ms·
Test coverage as a target metric is stupid.
by cedws 1y ago
Test coverage as a target metric is stupid.
- deleted 1y ago[deleted]
- MeetingsBrowser 1y agowhy?
- cedws 1y agoGoodhart's law, and because there are code paths not worth testing.
- MeetingsBrowser 1y agoIf its not worth testing delete it. Which target metrics do you consider to be good despite Goodhart's law?
- g7r 1y agoMaybe so. However, it is really really handy when you are assessing the completeness of your tests using code coverage, and can clearly see unhandled negative paths. And then you can decide whether some of them deserve dedicated tests or not.