...

/

Taking a Test Driven Development Approach

Taking a Test Driven Development Approach

Learn what a test-driven development (TDD) approach is, the rules of the TDD approach, and why it should be followed while writing tests for Angular applications

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 ...