Skip to content
Sharp

Testing · interview question

In the context of an e-commerce application, what is an advantage of using integration tests over unit tests for testing the checkout process?

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

Correct answer

C. They validate interactions between multiple components

Why

Integration tests are useful for validating interactions between multiple components in a system. In the checkout process, they ensure that different parts like payment processing, inventory updates, and user notifications work together as expected in a real-world scenario.

Test yourself on Testing

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

Start free test
All Testing questions →