raspberry_confetti@sh.itjust.workstoProgramming@programming.dev•100% code coverage is near-meaningless - but is there a good measure to use?English
20·
1 year ago80%. Much beyond that and you get into a decreasing return on the investment of making the tests.
Bingo, exactly this. I said 80 because that’s typically what I see our projects get to after writing actually useful tests. But if your coverage is 80% and it’s all just tests verifying that a constant is still set to whatever value, then yeah, thats a useless metric.