Chapter 8: Measuring Test Coverage of the Web Application
How do you know that you've tested your web application enough? There are many metrics and measures for code quality, including defect density, user stories covered, and other "black-box" measurements. However, there is also a complementary metric that has been on the market for a long while and is more of a "white-box" metric, which is code coverage. In this chapter, you will learn how to complement the quality assessment of your web application with code coverage across the various test automation frameworks featured in this book (Selenium, Cypress, Playwright, and Puppeteer).
The chapter is designed to cover the following:
- Understand the differences between code coverage and test coverage and when to use them.
- Learn about the recommended tool(s) for JavaScript code coverage measurements.
- Understand how to complement code coverage measurements with test coverage capabilities (for...