Mutation testing is indeed by far more effective at analysing the coverage of your assertions, but even just exercising the code at all does have some value, especially the last little bits near 100%. Those are often weird edge cases that are least likely to be exercised manually. I've always said the most valuable benefit of 100% code coverage is that it makes the dev think about all of their code.
Mutation testing is the golden future, but we're still a long way from the speed needed for it to be a reality on a large project.
You need to research this topic as you have confined yourself to web and "IT" project attitudes which certainly do not cover all cases. Take for instance mission/safety critical (aircraft, power stations etc) which constitute a large amount of software : code coverage rules have different levels of scrutiny according to criticality with the most onerous being MC/DC (Multiple Condition/Decision Coverage) - this will prove that not only all lines were exercised, but that all possible decisions which make up each path are exercised. That is certainly not how you describe it.
9
u/oweiler Sep 27 '18
The article is nice but the title is bullshit. Code coverage is still a useful metric because it tells you which parts of your code are untested.