Search⌘ K

How Much Testing is Enough?

Explore how to determine appropriate testing levels within Hexagonal Architecture. Learn to focus on test trustworthiness over coverage percentages, employ targeted test strategies for each architectural layer, and use production bugs as a feedback loop to improve test effectiveness. This lesson helps you balance test efforts with development flow to confidently ship your software.

We'll cover the following...

A question many project teams I’ve been part of couldn’t answer is how much testing we should do. Is it enough if our tests cover 80% of our lines of code? Should it be higher than that?

Line coverage

Line coverage is a bad metric to measure test success. Any goal other than 100% is completely meaningless because important parts of the codebase might not be covered at all. And ...