Introduction to code coverage and test coverage
When assessing code quality, there are various metrics and methods to do so. However, when referring to quality and coverage metrics, there is often confusion between code coverage and test coverage. In this section, we will define and clarify what each of them means and focus on the definition and value of code coverage to frontend web application developers.
Test coverage
Test coverage refers to the level of testing against requirements that you cover via all types of testing (functional, non-functional, API, security, accessibility, and more). Within test coverage, you can also identify the platform coverage metric, which includes the required permutations of browser/OS and mobile/OS platforms. Within the tool stack landscape, there are application life cycle management (ALM) solutions as well as other test management tools that can measure and provide high-level metrics around test coverage.
Typically, the QA manager would...