Code CoverageCode coverage provides developers and testers with information about what code is touched when a test is run. When code coverage is enabled and a test is run, the Code Coverage tab shows which elements were touched as well as how many code blocks and what percentage of code blocks were affected. Code coverage information can also be published to the Team Foundation operational store database. This allows code coverage to be used in the creation of a variety of reports and enables team members to better track and verify the testing process. Developers or testers have the option of viewing code coverage within the development environment. When code coverage is viewed, code that has been executed by the test is highlighted in green so that it is obvious which code is being executed.
|