Skip to content

Crash xUnit test #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LeonidEfremov opened this issue Mar 6, 2019 · 2 comments
Closed

Crash xUnit test #361

LeonidEfremov opened this issue Mar 6, 2019 · 2 comments

Comments

@LeonidEfremov
Copy link

LeonidEfremov commented Mar 6, 2019

Version 2.6.0 crash tests

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.2.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
    <PackageReference Include="xunit" Version="2.4.1" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
    <PackageReference Include="xUnit.Asserts.Compare" Version="1.0.0.3" />
    <PackageReference Include="coverlet.msbuild" Version="2.6.0" />
  </ItemGroup>
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

with this exception

.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 'xunit.runner.reporters.netcoreapp10_80657940-b3f8-4975-a559-76a4f2f9439f.pdb'.)
@MarcoRossignoli
Copy link
Collaborator

dup #359 (comment)

you have to exclude xunit or include only specific lib i.e. /p:Exclude="[xunit*]*" or /p:Include="[Build]*" you can verify instrumented lib appending -v:n at the end of dotnet test command.

@LeonidEfremov
Copy link
Author

Thank you, now is workink well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants