Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

Is the ice cream testing via the Inverted test pyramid an anti pattern?

Asked by Anil Jha Apr 26, 2022 782 views 1 answer
Share

About this question

 I know that the inverted test pyramid, i.e., having more end-to-end tests than unit tests is an anti-pattern.


However, I've started to think, what could be the advantage of having less unit tests then tests of higher levels, black box tests, talking to a tested component through some API/protocol, e.g. (SOAP, REST, etc.).


The only advantage I’ve found is when I migrate the component from one language to another but preserve the same component API/protocol.


In such a case, having high test coverage for API gives me much confidence that the migration went fine. Unit tests do not give this confidence, because they are tightly bound to the programming language, and when I migrate the code under tests from one language to another, I need to migrate unit tests, which means the possibility to introduce bugs to unit tests as well. Plus more effort.

Any other advantages of having more integration tests than unit tests?

Your answer

1 Answer

More QA Testing discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.