本文介绍了在.net Core,xUnit项目中获取代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用
也许有人体验过它并且可以分享如何解决的知识?
解决方案
当我尝试运行时作为管理员的powershell这个问题消失了,所以我想这与访问权限有关。
I'm trying to get code coverage in .net core project using directions from https://github.com/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项目中获取代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!