Interview Q&A · questions with model answers
Testing Interview Questions
Part of the study plan for: Backend Engineer · QA Engineer / SDET · Frontend Engineer · Full Stack Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked What's the difference between mocks, stubs, fakes and spies?
Stubs return canned answers; mocks additionally verify that expected interactions happened; fakes are working lightweight implementations (in-memory repository); spies wrap real objects and record…
-
What is mutation testing, and what does it tell you that code coverage doesn't?
Mutation testing makes small changes to the code (flip a condition, change a constant) and runs the tests; if the tests still pass, the "mutant survived", meaning the tests don't check that…