📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

How do you know your characterisation tests are good enough to start changing the code?

Senior Theory Advanced

🎯 Key points

  • Coverage of the change area only, including boundary values
  • Golden master grid = the input combinations whose outputs are snapshotted
  • Mutation testing with Stryker.NET limited to changed files (--since)
  • Manually break lines to confirm tests fail
  • Repeat runs to prove the tests are deterministic, not flaky
  • Fast enough to run in CI on every PR; mutation runs scoped to keep cost down

⏱ 30-second answer

Good enough means the tests would notice if your change broke something. Check three things. Coverage of the change area (not the codebase): every branch you'll touch is executed, including the input grid of any golden master, the set of input combinations whose outputs you snapshot, which should include boundary values. Sensitivity: run Stryker.NET on the changed files only (--since) and explain or kill surviving mutants, or break a line by hand and confirm a test fails. Reliability and speed: run the new tests repeatedly to prove they are deterministic, and keep them fast enough to run in the PR pipeline on every commit, because a safety net that is flaky or only runs nightly won't protect the change.

🔍 What the interviewer is checking

Checks they can judge the strength of a safety net, not just its existence.

↩ Usually asked after

More in Senior Testing Topics

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me