Test runners
A test runner is a tool that allows us to automate the execution of our application's unit tests.
Note
Unit testing refers to the practice of testing certain functions and areas (units) of our code. This gives us the ability to verify that our functions work as expected. It is assumed that the reader has some understanding of the unit test process, but the topics explored here will be covered in a much higher level of detail in Chapter 7, Application Testing.
We can use a test runner to automatically execute our application's test suites in multiple browsers instead of having to manually open each web browser in order to execute the tests.
We will use a test runner known as Karma. Karma is compatible with multiple unit testing frameworks, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access