5 Questions Every Unit Test Must Answer
Eric Elliott
2.1K31

I would like to give you a thousand claps for this (but medium doesn’t let me).

I can’t understand why programmers (who say they have 10–15 years of experience) can’t understand why tests should be clean and should not be written just to satisfy client expectations (coverage). I’ve seen tests these days just calling a function for the sake of coverage, no expectations, no proper description. Unfortunately the programmers who did that will never read this article.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.