Skip to content
Sharp

Testing · interview question

In a large e-commerce system, what is a downside of using too many integration tests compared to unit tests?

Multiple choiceHardchapter-10-curatedpremiumtestingmocking-with-mockito
Choose one answer
Answer and explanation

Correct answer

B. Integration tests are typically slower and more complex to set up.

Why

Integration tests are slower because they involve setting up and tearing down real components and dependencies, potentially involving databases and network operations. They are also more complex to write and maintain, which can slow down the development process if overused.

Test yourself on Testing

A free test with instant, explained results. No account needed.

Start free test
All Testing questions →