Taking a Test Driven Development Approach
Explore the fundamentals of Test Driven Development (TDD) and its application within Angular. Understand the iterative process of writing tests before code, ensuring functionality is verified and simplifying maintenance. This lesson helps you grasp TDD rules and benefits to improve your Angular app's reliability.
We'll cover the following...
What is TDD?
Before moving onto seeing how tests are set up within an Angular application, we need to understand what is meant by taking a Test Driven Development or TDD approach to writing code.
TDD has been around since the 1970s. The exact date when it started being used is hard to say since the practice of TDD has evolved over time as testing has grown in various languages and frameworks. And as testing became more and more important, a set of rules were agreed on for an approach on how we should write code. These rules became the base for the TDD approach.
According to the Agile Alliance, which is designed to ...