我在Visual Studio中发现的代码覆盖率***解决方案如下:
- 打开Visual Studio 2017
- 转到工具"->扩展和更新"
- 转到在线",在搜索(窗口右上方)中键入
" AxoCover "
- 点击安装",然后按照说明进行操作(即,关闭Visual Studio,以
开始安装)
- 重新打开Visual Studio
- 构建项目
- 转到工具"->"AxoCover"
- 在测试"标签下,右键单击您的***目录,然后转到封面
测试"
- 点击报告"标签
- Open Visual Studio 2017
- Go to Tools->Extensions and Updates
- Go to "Online", in the search (top right of the window) type
"AxoCover"
- Click install, follow the instructions (i.e. close Visual Studio to
start the install)
- Reopen Visual Studio
- Build your project
- Go to Tools->AxoCover
- Under the "Tests" tab right click your top directory and go "Cover
tests"
- Click on the "Report" tab