What is the difference between test coverage and code coverage?

Software Testing And Quality Assurance Questions



35 Short 66 Medium 50 Long Answer Questions Question Index

What is the difference between test coverage and code coverage?

Test coverage refers to the extent to which the software testing process has covered the requirements and functionality of the system. It measures the effectiveness of the testing by determining the percentage of requirements or functionality that has been tested.

On the other hand, code coverage is a subset of test coverage that specifically measures the extent to which the source code of the software has been executed during testing. It determines the percentage of code statements, branches, or paths that have been executed.

In summary, test coverage focuses on the overall testing of requirements and functionality, while code coverage specifically measures the execution of the source code during testing.