Mechanism of testing

To be a proper TDD-following developer, it is important to understand some fundamental mechanisms of testing techniques and approaches to testing. In this section, we will walk through a couple of examples of testing techniques and mechanisms that will be leveraged in this book.

This will mostly include the following points:

  • Testing doubles with Jasmine spies
  • Refactoring the existing tests
  • Building patterns

Here are the additional terms that will be used:

  • Function under test: This is the function that is being tested. It is also referred to as system under test, object under test, and so on.
  • The 3 As (Arrange, Act, and Assert): This is a technique used to set up tests, first described by Bill Wake ( ...

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.