loading...

re: Why code coverage is not a reliable metric VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Indeed, it doesn't show the quality. Code coverage tools only tell you there are unit tests that cover SOME scenarios of a particular piece of code...
 

Yup, that's true, I was actually planning on developing some tool, that would indicate how "good" the tests are. It's not a silver bullet, but it should at least tell you things like:

  • the stub you've declared isn't used anywhere
  • the result you are receiving is not verified
  • there have been changes on some object without proper assertions, etc.

...and this list goes on, but I found it to be technically too challenging to just do it as a pet project :D.

That sounds cool.
Please consider sharing if you ever develop it.

code of conduct - report abuse