Introduction to testing frameworks

In this section, we will learn about two important testing frameworks, namely Jasmine and Karma.

Testing is as important as development itself. It's a highly debatable topic, with some experts believing in test-driven development (TDD), which means that writing test scripts is important even before we write development code.

The beauty about Angular framework is that it natively supports testing frameworks and offers a lot of testing utilities that make the developer's job happy and easy. We are not complaining at all.

Angular provides us with a core testing module, which has a lot of awesome classes we can make use of, and natively supports two important testing frameworks, namely Jasmine and Karma:

  • We write our test scripts using the Jasmine framework.
  • We use the Karma framework to execute the test scripts.
..................Content has been hidden....................

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