Test-first approaches · Question 43 of 60

For a voucher feature a team writes: "Given a basket over €40, when the customer enters the code SUMMER10, then the price drops by 10%." Which approach is this most likely?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • C Behavior-driven development

Explanation

The Given/When/Then format describes behaviour in a way stakeholders understand and is typical of BDD. Automatically executable tests are derived from it.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications