Introduction to testing in Angular

In the section The anatomy of a unit test, we gained familiarity with unit testing and its general concepts, such as test suites, test specs, and assertions. Armed with that knowledge, it is now time to venture into unit testing with Angular. Before we start writing tests for Angular, though, we will first give an introduction to the tooling that exists within the Angular CLI to make unit testing a nice experience. When venturing into unit testing in Angular, it's important to know what major parts it consists of. In Angular these are:

  • Jasmine, the testing framework
  • Angular testing utilities
  • Karma, a test runner for running unit tests, among other things
  • Protractor, Angular's framework for E2E testing
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset