Skip to content
Sharp

Testing · interview question

Why do teams use Testcontainers for integration testing in a Java application in production code?

Multiple choiceEasychapter-10-curatedpremiumtestingintegration-testing
Choose one answer
Answer and explanation

Correct answer

A. It allows for testing with real infrastructure components.

Why

Testcontainers allow developers to test their applications with real infrastructure components like databases, ensuring that tests are more representative of production environments.

Test yourself on Testing

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

Start free test
All Testing questions →