Getting code coverage in .net core, xUnit project

家住魔仙堡 提交于 2019-12-02 03:36:16

问题


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?


回答1:


When I tried to run powershell as an administrator this problem disappeared, so I guess it has something to do with access permissions.



来源:https://stackoverflow.com/questions/46173051/getting-code-coverage-in-net-core-xunit-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!