A number of case studies have shown that a typical developer spends 30% to 40% of their time fixing bugs. Specification by Example/BDD is designed to prevent those bugs and give you back all of that time. If an average developer earns $150,000 annually in salary and benefits, 30% of their time is $50,000 – per developer, per year.
I like to talk about two kinds of bugs – Little-B bugs and Big-B Bugs.
Scenario Outline: Late bills will be charged a penalty on a sliding scale
Given an active customer account
And a bill that is <Days_Past_Due> days past due
When the bill is paid
Then a <Penalty> penalty will be charged