Visual Studio 2012 Coded UI Testing of Web Application - Code coverage

吃可爱长大的小学妹 提交于 2020-01-23 07:24:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!