Coverlet: Could not find file xunit.runner.reporters.netcoreapp10_.pdb

Created on 29 Mar 2019  路  2Comments  路  Source: coverlet-coverage/coverlet

When running the following command:
dotnet test /p:CollectCoverage=true

I am getting the following error:

C:\Users\marcust\.nuget\packages\coverlet.msbuild\2.6.0\build\netstandard2.0\coverlet.msbuild.targets(35,5): error : One or more errors occurred. (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) (Could not find file 'C:\Users\marcust\AppData\Local\Temp\xunit.runner.reporters.netcoreapp10_79998c90-c822-4bcd-98a7-3d5a045e1730.pdb'.) [C:\Source\coverlet-error\thetests\thetests.csproj]
C:\Users\marcust\.nuget\packages\coverlet.msbuild\2.6.0\build\netstandard2.0\coverlet.msbuild.targets(35,5): error :    at Coverlet.Core.RetryHelper.Do[T](Func`1 action, Func`1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 58 [C:\Source\coverlet-error\thetests\thetests.csproj]
C:\Users\marcust\.nuget\packages\coverlet.msbuild\2.6.0\build\netstandard2.0\coverlet.msbuild.targets(35,5): error :    at Coverlet.Core.RetryHelper.Retry(Action action, Func`1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 27 [C:\Source\coverlet-error\thetests\thetests.csproj]
C:\Users\marcust\.nuget\packages\coverlet.msbuild\2.6.0\build\netstandard2.0\coverlet.msbuild.targets(35,5): error :    at Coverlet.Core.Coverage.GetCoverageResult() in /Users/toni/Workspace/coverlet/src/coverlet.core/Coverage.cs:line 108 [C:\Source\coverlet-error\thetests\thetests.csproj]
C:\Users\marcust\.nuget\packages\coverlet.msbuild\2.6.0\build\netstandard2.0\coverlet.msbuild.targets(35,5): error :    at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in /Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line 67 [C:\Source\coverlet-error\thetests\thetests.csproj]

Versions
.NET Core SDK 2.2.104
coverlet.msbuild 2.6.0

Sample project
coverlet-error.zip
Go into test folder and run dotnet test /p:CollectCoverage=true.

Most helpful comment

It's a know issue https://github.com/tonerdo/coverlet/issues/372#issuecomment-477626872 for now you can skip to instrument xunit with /p:Exclude="[xunit*]*"

All 2 comments

It's a know issue https://github.com/tonerdo/coverlet/issues/372#issuecomment-477626872 for now you can skip to instrument xunit with /p:Exclude="[xunit*]*"

Ah ok; I also see this is a duplicate of #359, so I'll close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

chaoticsoftware picture chaoticsoftware  路  7Comments

jamir-araujo picture jamir-araujo  路  4Comments

arohithr8 picture arohithr8  路  5Comments

spboyer picture spboyer  路  3Comments