OpenCover testing tool usage in Visual Studio 2013

自古美人都是妖i 提交于 2019-12-10 18:25:07

问题


I am trying to use OpenCover for a calculator application, written in C#. I have opened it in Visual Studio 2013 and installed the OpenCover and Report Generation packages using the package manager console. I cannot understand the other commands to continue. Specifically what does it mean by -target<target application>?

I cannot understand a single step to continue.


回答1:


When you install OpenCover it would/should have presented you with a readme.txt that provides a link to the wiki http://www.github.com/OpenCover/OpenCover/wiki/usage - there is also a usage.pdf installed with the tool.

-target means the target application, this can be the app you have just written or a coverage tool such as nunit that would run parts of your application code whilst it is running the supplied tests.




回答2:


If you're happy with any code coverage without it specifically needing to be OpenCover, then see my answer here.

Using the AxoCover plugin makes it very quick and simple to get your NUnit tests displaying their code coverage.



来源:https://stackoverflow.com/questions/33620340/opencover-testing-tool-usage-in-visual-studio-2013

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