API Testing · Senior · Question 43 of 75
What is the advantage of component tests that start one service with real DB in containers?
- 1They test every other service in the system at once
- 2Realistic behaviour with fast, isolated runs and no shared staging
- 3They replace the need for any unit tests in the service
Show the answer
Correct answer: Realistic behaviour with fast, isolated runs and no shared staging
Explanation
Testcontainers-style setups give each run its own database, so tests can be destructive and parallel.