r/softwaretesting • • Jul 07 '26

Does 100% coverage on E2E make senses?

For context, engineers only implement unit testing, then E2E. Integration testing and contract testing are missing.

Our executive want 100% E2E test coverage in response of incidents.

I don't think this make senses and we have test pyramid (or diamond, my love) for a reason. Integration testing and contract testing would have prevented a lot of issues without resorting to do E2E.

How can I convince them and engineers to shift more leftward with integration testing?

10 Upvotes

36 comments sorted by

View all comments

Show parent comment

10

u/zaphodikus Jul 07 '26 edited Jul 07 '26

There are performance tests, security tests, and even classes of defect nobody knows exist in any 3rd party interfaces , unless you are an embedded product and build your own radios too, you are not immune to 3rd party project and product risks. If you use a network or a filesystem you did not write you will still find it hard. Even displays and keyboards may want testing at the extreme. So yeah 100% is a diminishing returns point.

However if you were to explain the 80%/20% principle to your boss, then they would realise that 80% code coverage is pretty close to 100%?

3

u/FearAnCheoil Jul 07 '26

Not to mention the time it takes. Does he really want the same time and attention paid to a more obscure part of the application than core functionality?