Hacker News new | ask | show | jobs
by burntsushi 3335 days ago
Code coverage has been useful to me in practice, so I think blanket statements like "code coverage isn't useful" is very misleading. For example, code coverage has helped me identify specific branches in my code that are untested, which in turn help guide me to write additional unit tests.

You don't need to completely dismiss other testing techniques. Mutation testing can be useful at the same time that code coverage is useful.

1 comments

Totally agreed. Branch coverage has been far more useful to me than line coverage has.