Principles of BDD
At its core, Behavior-driven development is a specialized version of test-driven development which focuses on behavioral specification of software units.
Test-driven development is a software development methodology which essentially states that for each unit of software, a software developer must:
- define a test set for the unit first;
- then implement the unit;
- finally verify that the implementation of the unit makes the tests succeed.
This definition is rather non-specific in that it allows tests in terms of high-level software requirements, low-level technical details or anything in between. The original developer of BDD (Dan North) came up with the notion of BDD because he was dissatisfied with the lack of any specification within TDD of what should be tested and how. One way of looking at BDD therefore, is that it is a continued development of TDD which makes more specific choices than TDD.
Behavior-driven development specifies that tests of any unit of software should be specified in terms of the desired behavior of the unit. Borrowing from agile software development the "desired behavior" in this case consists of the requirements set by the business — that is, the desired behavior that has business value for whatever entity commissioned the software unit under construction. Within BDD practice, this is referred to as BDD being an "outside-in" activity.
Read more about this topic: Behavior Driven Development
Famous quotes containing the words principles of and/or principles:
“It is not impossible, of course, after such an administration as Roosevelts and after the change in method that I could not but adapt in view of my different way of looking at things, that questions should arise as to whether I should go back on the principles of the Roosevelt administration.... I have a government of limited power under a Constitution, and we have got to work out our problems on the basis of law. Now, if that is reactionary, then I am a reactionary.”
—William Howard Taft (18571930)
“It seems to me that man is made to act rather than to know: the principles of things escape our most persevering researches.”
—Frederick The Great (17121786)