Summary
We have seen that TDD and BDD are different techniques. BDD is a refinement of TDD; it emphasizes that the important thing is to test behaviors of the system that are relevant to the stakeholders and users.
BDD allows us to write more coherent test suites that can evolve at the same speed as our requirements. A good BDD test suite will give us the ability to track which behaviors are not working correctly in our system and which tests should be changed when we need to change the functionality of the system.
Finally, it is important to distinguish between BDD and integration tests. An integration test checks several problem domains at the same time. This often leads to confused tests that try to test everything and, in the end, are not very ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access