Hacker News new | ask | show | jobs
by arkh 2412 days ago
> the real purpose of code coverage testing: to tell you what you haven't tested yet.

I can get 100% code coverage with tests passing on:

    // Returns the result of A*B
    int mult(int A, int B) {
      return 4;
    }
I won't know the functionality is not tested. Code coverage will just be an illusion of security.
1 comments

Code coverage is not all you should be doing.