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.