What tools are available for calculating code coverage using browser automation tests

拟墨画扇 提交于 2020-01-01 14:38:35

问题


I have a website written in ASP.NET MVC 3. I have put together some browser automation tests that target this website. I want to use this same set of tests to calculate the code coverage of the website code.

I know that NCover does this kind of work but based on my knowledge there are two issues. One, NCover gives code coverage figures for both framework's code and my code. Two, it's costly.


回答1:


NCover has filters that you can use to ignore the framework code.

You could also use OpenCover or PartCover to get these metrics and they are both open source and free - they also have filters.

Hooking them into IIS is tricky but if it is for automation tests then you can run your tests against IIS express - much easier.



来源:https://stackoverflow.com/questions/7782897/what-tools-are-available-for-calculating-code-coverage-using-browser-automation

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