I honestly don't see the difference between BDD and TDD.
This is because it is not there.
I mean, both are just checks, if expected, expected.
It is not right. BDD and TDD have absolutely nothing to do with testing. Nobody. Nada. Shish. Zip. Knicks. Not in the least.
Unfortunately, TDD has the word “test” in almost everything (not only in its name, but also in the test environment, unit test, TestCase (the class you inherit from), FooTest (the class that usually runs your tests), testBar (a typical naming pattern for the test method), plus many terminological terms such as “statement” and “test”), which leads some people to believe that this is actually something in common with the tests. So, some smart people said, “Hey, let me just change the name” to eliminate any confusion.
And what is BDD. It is simply a TDD with any terminology terminology replaced by terminology related to behavior:
- Test → Example
- Approval → Expectation
assert → should- Unit → Behavior
- Verification → Specification
- & hellip; etc.
BDDs are simply TDDs with different words. If you do TDD correctly, you do BDD. The difference is that - if you believe, at least, in the weak form of the Sapir-Whorf hypothesis - different words allow you to do it right.
Jörg W Mittag Dec 09 '10 at 10:02 2010-12-09 10:02
source share