Engrain by ByteRush

QLT.06.01 Mid-levelCore — asked often

Testing strategy

Comes up in: Hiring manager, Frontend system design, Recruiter screen

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • test pyramid vs testing trophy
  • unit, integration, component, e2e, visual, contract
  • confidence vs cost
  • what to test (behaviour, not implementation)
  • flaky tests and their cost

Words you will know

unit testintegration teste2e testflaky test

What you will practise

  • write a testing plan for a checkout feature

Interview questions this answers

  • How do you decide what to unit test vs e2e test?
  • How do you deal with flaky e2e tests?
  • What makes a test brittle?