coverlet: BUG: (Completely) Missing Coverage

Maybe related: https://github.com/tonerdo/coverlet/issues/39

Behavior.

image

What I do

  1. Add coverlet.msbuild NuGet to my test project.
  2. Run Tor (needed for my tests to successfully complete.)
  3. Run dotnet test /p:CollectCoverage=true.

I also tried creating a new project and everything works fine, however with my current project (https://github.com/zkSNACKs/WalletWasabi/) it silently fails.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 27 (8 by maintainers)

Most upvoted comments

@nopara73, this works correctly now after adding <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> Thanks @n00j 👍

Have you tried adding the following to your test.csproj?

<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

I was running into problems with coverlet not being able to locate dll’s and seems to fix it.

Just interjecting to remark that doing

dotnet test /p:AltCover=true /p:AltCoverLcovReport=lcov.info

to have the same effect has been supported since early last summer.