Chapter 1. Introduction to Test-Driven Development

Angular is at the forefront of client-side JavaScript testing. Every Angular tutorial includes an accompanying test, and event test modules are a part of the core Angular package. The Angular team is focused on making testing fundamental to web development.

This chapter introduces you to the fundamentals of test-driven development (TDD) with Angular, including the following topics:

  • An overview of TDD
  • The TDD life cycle: test first, make it run, and make it better
  • Common testing techniques

An overview of TDD

TDD is an evolutionary approach to development, where you write a test before you write just enough production code to fulfill that test and its refactoring.

This section will explore the fundamentals ...

Get Angular Test-Driven Development - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.