|
|
|
|
|
by kilotaras
3335 days ago
|
|
Code coverage in itself isn't a very useful metric. Classic example is big test with no asserts will get you pretty good coverage. There's a rather computationally intensive technique called mutation testing where you introduce bugs into code (e.g. change + to -, flip conditionals, etc.) and check that tests fail. |
|
You don't need to completely dismiss other testing techniques. Mutation testing can be useful at the same time that code coverage is useful.