All jobs / Engineering manager / tech lead / Code & Development Practices
Engineering manager / tech lead interview question · 1–3 years
You inherit a team with almost no automated tests. Where do you start?
The strongest answer
Agree a testing strategy with the team, start where failures hurt most, and make tests part of the definition of done for new work
Why it works
Exactly. Strategy with the team, highest-pain first, and done means tested.
What a good answer covers
- Strategy with the team.
- Start where failures hurt.
- Tests are part of done.
- Coverage numbers are not a strategy.
Answers that fall short
- Close, but not the strongest: Mandate a coverage percentage for the codebase
A coverage target produces tests that satisfy the number, not the risk. - Weak: Hire a QA engineer to own testing
Testing owned by one person is testing the team does not own. - Red flag: Leave it; we do not have time for tests this year
No time for tests means all the time for incidents.
Who gets asked this
More Code & Development Practices questions
- Trunk-based development or long-lived feature branches — which do you put a team on, and why?
- The pipeline takes fifty minutes, and most of it is end-to-end tests running against a deployed environment…
- Your organisation releases once a month, in an evening, with everyone on standby. How do you get to weekly or…
- As tech lead, what is code review on your team for?
- A developer asks what the CI pipeline is actually for. What do you tell them?
- When is a story done on your team?
- Pull requests on your team sit for two or three days, and the branches grow while they wait. What do you do?
- The test suite fails on about one run in five, and the team has learned to hit “re-run”. What is your policy?