Every time we develop a new application, we need to make a lot of decisions. For example, we need to choose the type of database, architecture, libraries, and frameworks that we will use. However, not all our choices are about technologies, and we can also choose a software development methodology, such as extreme programming or scrum. When it comes to testing, there are two major styles or methodologies: TDD and BDD.
Testing methodologies
Test-driven development (TDD)
Test-driven development is a testing methodology that focuses on encouraging developers to write tests before they write application code. Usually, the process of writing code in TDD consists of the following basic steps:
- Write a test that fails. There is no...