Interview practice question
Integration tests are slow because of containers
Backend Engineering · Testing · Intermediate
Your integration tests start new database and Kafka containers for every test class, and the suite takes 25 minutes. How do you speed it up?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Reuse containers across suite (singleton).
- Reset data instead of recreating containers.
- Parallelise with separate schemas.
- Use tmpfs/fast settings for DB.
- Split slow tests into separate stage.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.