Debugging problems

Repair the test · Level 3

An order without a number still passes

The shop confirms an order, but its order number is blank. The test reports a pass. Follow what happens when the number is missing.

What you will practise

An assertion can fail while the test still passes. This happens when the test catches the error and only writes it to the log.

Done when

  • Place an order and open its confirmation.
  • Make the test fail when the confirmation has no order number.

Read the brief here. Use a computer with a keyboard to write and run tests.

$19 per month

This problem, 16 more like it, 175 lessons and 10 AI interviews a month.