【发布时间】:2020-09-18 11:13:05
【问题描述】:
我正在使用 linux 机器中的 VS 代码开发 dotnet 核心项目。
按照以下博客生成覆盖率报告: https://www.hanselman.com/blog/AutomaticUnitTestingInNETCorePlusCodeCoverageInVisualStudioCode.aspx
如上所述,我传递 dotnet 测试参数如下:
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info
并期望生成 lcov.info 文件,但它没有。
我这里有什么遗漏吗?
ps:我已经包含了这个包
<PackageReference Include="coverlet.collector" Version="1.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
【问题讨论】:
标签: .net-core visual-studio-code code-coverage lcov coverlet