簡體   English   中英

在.net Core,xUnit項目中獲取代碼覆蓋率

[英]Getting code coverage in .net core, xUnit project

我正在嘗試使用https://github.com/Microsoft/vstest-docs/blob/master/docs/analyze.md#working-with-code-coverage的指示來在.net核心項目中獲得代碼覆蓋率

測試工作正常 沒有代碼覆蓋的測試

但是,當我添加代碼覆蓋率選項時,出現此錯誤:

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.

測試代碼覆蓋率

也許有人經歷過它,可以分享如何修復的知識?

當我嘗試以管理員身份運行Powershell時,此問題消失了,所以我猜想它與訪問權限有關。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM