Complementing code coverage with test coverage
As we explained in the previous section, measuring code coverage is critical to assessing the depth of code that is being executed and covered via testing. However, such code-level analysis alone is not sufficient and requires the combination of test coverage analysis as well. When trying to ensure the high quality of your web application, there are various factors that play a critical role in that. Code coverage guarantees that the application is tested at runtime across multiple scenarios and that most of the code is being exercised. The outcomes of the code coverage report guide managers on which areas to invest in further to reduce risks and enhance overall application quality.
Test coverage as a superset of the quality plan looks at other aspects of the application quality, such as user experience, security, accessibility, compatibility, and boundary testing. Together, code and test coverage make a great set of metrics and analysis...