There is this great tool in Visual Studio 2012 to show the test coverage of the source code. On the official MSDN homepage it is shown under menu Test -> Analyze Code Coverage
.
But in my Test
menu this entry is missing and I could'nt figure out why. Can someone please explain? Am I missing an addon/plugin?
Update: Visual Studio 2012 Professional with Update 3.
According to the MSDN page you linked:
Requirements
Visual Studio Ultimate, Visual Studio Premium
So it will not be available on Professional.
代码涵盖了Visual Studio 2012的高级和最终版本。
免费的替代品是OpenCover: https ://www.nuget.org/packages/OpenCover
这在VS2012上不起作用,但是如果您恰巧使用的是更新版本,则https://opencppcoverage.codeplex.com/具有VS插件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.