问题
I have a web application. I am using VS 2012 Coded UI for testing the web application. I have recorded the test and running it, and it works fine. But the code coverage window gives code coverage of the test project only, it doesnt give code coverage of the website project and other dll project which is referred in the web project.
I have added the testsetting file in the solution and selected the same.
Any clue?
回答1:
Couple of things to verify
a) Have you added all these assemblies into the code coverage configuration's list of assemblies via the testsettings?
b) Is your deployment of the web app happening as a part of your test run? If so then you should ideally have the "instrument in place" option selected
来源:https://stackoverflow.com/questions/12891370/visual-studio-2012-coded-ui-testing-of-web-application-code-coverage