DEV Community

Discussion on: Achieving 100% code coverage will make you a better developer. Seriously.

Collapse
 
elmuerte profile image
Michiel Hendriks • Edited

You've probably seen this image before, but this is what 100% code coverage can look like:

It even passes all tests.

This is what will happen when you make high code coverage a strict requirement for developers.

Collapse
 
aminnairi profile image
Amin

Error: Expected an instance of W, got M instead.

Collapse
 
elmuerte profile image
Michiel Hendriks

According to the posted dashboard the assertion held up, so it must have been a W which was received.

Collapse
 
d_ir profile image
Daniel Irvine 🏳️‍🌈

I hadn’t seen this, thank you for sharing :)