DEV Community

Discussion on: The tragedy of 100% code coverage

Collapse
 
imarban profile image
Israel Gómez

In my opinion, a bright developer should know what pieces of code are worth to test and those that are not. Even if they are required to meet a coverage number I had expected a way better response from those devs. Were they very junior developers? Maybe not so exposed to unit testing before?

Collapse
 
danlebrero profile image
Dan Lebrero

Hi Israel,

I don't think writing good tests is easy, no matter how bright you are. Writing good test is as difficult as writing good production code.

I see a big cargo cult around testing in the Java world (not sure about other communities), which is difficult to see from within, and more difficult to go against, specially if your team lead and your teammates are part of it.

Thanks for the comments!

Dan