【发布时间】:2019-05-09 21:59:35
【问题描述】:
我正在尝试使用构建管道创建代码覆盖率报告。
我在构建管道中添加了typeVisual Studio code的任务并启用了代码覆盖率。
触发构建时。我得到了:
Data collector 'Code Coverage' message: Data collector 'Code Coverage' failed to provide initialization information. Error: System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.Diagnostics.Logging.ProfilerInterop' threw an exception. ---> Microsoft.VisualStudio.Diagnostics.Common.InvariantException: Failed to load IntelliTrace Profiler binary or failed to locate functions.
和
---> System.ComponentModel.Win32Exception: The system cannot find the path specified
这正在运行测试并且所有测试都通过了。但是我无法查看代码覆盖率报告。它创建的报告仅包含有关测试的信息
我们指定路径的任何输入都是有用的。
【问题讨论】:
标签: unit-testing build code-coverage azure-pipelines