Code coverage or test coverage measures the extent to which the source code is covered when test cases are run.