en ru de
Victor Kropp

100% Code Coverage

If you write unit tests and don’t cover all business logic in your project, you are doing it wrong.

pikabu.ru

Each untested line of code may contain a bug. Only full coverage can provide confidence in your code.

Integration tests may help to increase this important metric because they cover more lines of code at once.

{{< tweet 829850420948455424 >}}

However, they are harder to write, so don’t waste your time.

Much, much harder.

If somebody tells you that some issues may only be discovered in integration testing, don’t believe them!

You don’t need integration tests.

Your code will always be used in the way you expected it to be used.

giphy.com

Have other examples? Share links in comments!

And don’t take this too serious.

programmingtestingaprilfools

Subscribe to all blog posts via RSS, follow me @kropp and join my Telegram channel.