3 ms·
I'm a huge proponent of good testing, mainly because it's so much easier to work sustainably on a code base with good tests. But I hate, hate, hate test coverag
by wpietri 4y ago
I'm a huge proponent of good testing, mainly because it's so much easier to work sustainably on a code base with good tests. But I hate, hate, hate test coverage mandates. Every time I've seen them, it's as you say: some people write garbage tests to hit the metric. Before with those people you wouldn't have been able to trust their code. Now you have two problems, because you can't trust their tests either.
- GaryPalmer 4y agoSometimes you are forced to write a garbage test because there is not much to say about some simple code in terms of tests.
- wpietri 4y agoThat's an interesting phrasing. Who forces you?
- GaryPalmer 4y agoIt's integrated into the build process. The build fails if there are not enough lines covered by tests.