O'Reilly logo

Angular Test-Driven Development - Second Edition by Md. Ziaul Haq

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required