- 
                Notifications
    You must be signed in to change notification settings 
- Fork 391
Closed
Labels
SolvedThe issue is solved and can be closedThe issue is solved and can be closedtenet-performancePerformance related issuePerformance related issue
Description
I have an NUnit test project with a dependency on coverlet.collector v3.0.3 which becomes unusable when dotnet test is invoked with --collect:"XPlat Code Coverage".
Repro steps:
git clone https://github.com/lynx-chess/Lynx
git checkout 8dd27e9cb2863c6e538638b4482154270ca00525
dotnet test .\tests\Lynx.NUnit.Test\ -c Release --filter "Mate_in_2" # 1s
dotnet test .\tests\Lynx.NUnit.Test\ -c Release --filter "Mate_in_2" --collect:"XPlat Code Coverage" # 47s
dotnet test .\tests\Lynx.NUnit.Test\ -c Release --filter "TestCategory=LongRunning"  # < 4 min
dotnet test .\tests\Lynx.NUnit.Test\ -c Release --filter "TestCategory=LongRunning" --collect:"XPlat Code Coverage"  # Never endingSee also some GH Actions runs (see long-running tests -> Run long-running tests):
- Run 1: With coverlet.collectorand with--collect:"XPlat Code Coverage"- Manually cancelled after 45 min 🔴
- Run 2: With coverlet.collectorand without--collect:"XPlat Code Coverage"- ~2.5 min ✔️
- Run 3: Without coverlet.collectorand without--collect:"XPlat Code Coverage"- ~2.5 min ✔️(the failure in the next step of the job is unrelated)
Versions;
6.0.100-preview.5.21302.13
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NUnit" Version="3.13.2" />
    <PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
    <PackageReference Include="coverlet.collector" Version="3.0.3">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>gtbuchanan, carl-di-ortus, CAPCHIK and LeonsBuntis
Metadata
Metadata
Assignees
Labels
SolvedThe issue is solved and can be closedThe issue is solved and can be closedtenet-performancePerformance related issuePerformance related issue