本文介绍了在 Core,xUnit项目中获取代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用
也许有人体验过它并且可以分享如何解决的知识?
解决方案当我尝试运行时作为管理员的powershell这个问题消失了,所以我想这与访问权限有关。
I'm trying to get code coverage in core project using directions from github/Microsoft/vstest-docs/blob/master/docs/analyze.md#working-with-code-coverage
Test are working correctly
However, when I add code coverage option I get this error:
Starting test execution, please wait... Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Object reference not set to an instance of an object.Maybe someone have experienced it and could share knowledge how to fix it?
解决方案When I tried to run powershell as an administrator this problem disappeared, so I guess it has something to do with access permissions.
更多推荐
在.net Core,xUnit项目中获取代码覆盖率
发布评论