SpinTheMic
Pro

Interview practice question

Fixing a bug found in production

Backend Engineering · Testing · Beginner

A customer reports that discounts are calculated incorrectly for orders over 1,000 euros. How do you fix it using tests?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Reproduce with failing test first.
  • Fix code until test passes.
  • Add nearby edge cases.
  • Run full suite.
  • Test stays as regression protection.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics