News for hackers. Stuff that matters.
Re:Test && commit || revert by xahrepap on Saturday September 29, 2018 @02:00AM (#18098941)
Code coverage is a very poor measure of quality of your tests. You can have lower coverage and great tests, and high coverage with completely useless tests.

I use test coverage as part of my workflow. Run my tests with coverage on and make sure my new code is fully covered. Kinda like a sanity check to make sure I'm not missing anything. Or if I'm stepping into old code and I want to see how well it's tested, I'll run the full suite with coverage on and see how bad it is.

The second management starts asking for x% code coverage is when it starts to break down, imo.

There are no comments on this comment yet.