You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用dotnet-coverage收集代码覆盖率时提示“No code coverage data available. Profiler was not initialized”的问题求助

dotnet-coverage收集代码覆盖率时提示“No code coverage data available. Profiler was not initialized”的问题求助

我正打算把代码覆盖率工具从opencover换成dotnet-coverage,试了好几次,但每次都会收到这样的提示:

"No code coverage data available. Profiler was not initialized."

我使用的命令如下:

dotnet-coverage collect -f xml -o 'outputpath' "dotnet test 'path to solution'"

我已经尝试过查找解决办法,也仔细阅读了官方文档,但始终没找到能解决这个问题的方案。有没有大佬能帮我支个招?我知道还有其他实现代码覆盖率的方式,但我更倾向于使用dotnet-coverage来完成这件事。

备注:内容来源于stack exchange,提问作者NotSanta27

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 10:09:29