我正在尝试使用以下方向的指示来获取 .net core 项目中的代码覆盖率https://github.com/Microsoft/vstest-docs/blob/master/docs/analyze.md#working-with-code-coverage
Test are working correctly
![Tests without code coverage](https://i.stack.imgur.com/UXsoo.png)
但是,当我添加代码覆盖率选项时,我收到此错误:
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.
![Tests with code coverage](https://i.stack.imgur.com/6cGGn.png)
也许有人经历过并可以分享如何解决它的知识?
当我尝试以管理员身份运行 powershell 时,这个问题消失了,所以我猜这与访问权限有关。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)