Keeping tests useful · senior
A CI test strategy that stays fast
A good CI pipeline runs cheap checks first and on every change (types, lint, unit and integration tests for affected code), a small E2E smoke suite on every PR, and the full cross-browser and visual suites on main or nightly, with sharding, caching and clear ownership of failures.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Order by cost: typecheck + lint (seconds) -> unit/integration (minutes) -> E2E smoke (a few critical flows) -> full E2E, cross-browser, visual, accessibility (main/nightly).
- Speed: run only affected projects in a monorepo (Nx/Turborepo affected graphs), cache dependencies and build outputs, shard E2E across machines, parallel workers.
- Target: a PR pipeline under about 10 to 15 minutes, or people stop waiting for it and merge anyway.
- Artifacts: Playwright traces and screenshots on failure, coverage reports for changed lines, test result history to spot flakes.
- Gates: required checks for merge; preview deployments per PR to run E2E against; contract tests in provider pipelines.
- After deploy: smoke tests in production, synthetic monitoring, RUM and error tracking (tests don't end at merge).
The red pen
Common traps: mistake → fix
Mistake: "Run the full E2E suite on every commit"
Fix: slow feedback; people batch changes or ignore failures.
Mistake: "CI green means production is fine"
Fix: add post-deploy smoke tests, monitoring and fast rollback.
Easy to hard
Questions interviewers ask, easy to hard
- What runs in your CI pipeline and in what order?
- Our PR checks take 45 minutes. How do you bring that down?
- How do you make sure E2E tests run against something close to production?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.