Search code examples
unit-testingtestingtddintegration-testingbdd

What is Major Difference between Integration Testing and Behavioral Testing BDD


Over the last few years TDD get very popular and some home another version of testing comes up wit Integration testing and now Behavioral testing BDD is the major focus can some one explain the major difference between BDD and Integration testing.


Solution

  • It's like apples and oranges..

    BDD is about naming your tests according to the behaviour of the system. So instead of saying testThisAndThat() you say doesThisAndThat(). If BDD is used as a "methodology" in the team, then every team member (including BAs, QAs) is using the same notation to write the specification and tests. See this for more details.

    Integration Testing has different meanings for different people, most popular usage:

    • Testing how your system works with other systems
    • Testing multiple layers/parts of the code (multiple units together) aka Component Testing
    • Testing your API aka System Testing for Service API

    So Integration Testing term is heavily overloaded, check this out for more details.