Just to summarize:
Your solution browser should have a Solution Items folder, which should contain the Local.testsettings file. Double click on it, go to Data and Diagnostics in the window that opens, enable Code Coverage . Then click the Configure button and check the builds for which you want to use Code Coverage. Apply your settings, now Code Coverage should work.
If you do not have a Solution Items folder or if you do not have a Local.testsettings file, you can simply create a new Test Project . He will create Local.testsettings . You can delete a new test project if you do not need it.
Dima stefantsov
source share