You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was an issue with coverlet coverlet-coverage/coverlet#1390 and in version 3.2.0 it is solved
I see that you have dependency on it's previous version and looks like simple update will solve issue with FineCodeCoverage, because now I'm getting same error in Visual Studio, while during CI/CD all works fine
Data collector 'XPlat code coverage' message: [coverlet]System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' from assembly 'Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.GetDefaultServiceCollection(TestPlatformEqtTrace eqtTrace, TestPlatformLogger logger, String testModule)
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.OnSessionStart(Object sender, SessionStartEventArgs sessionStartEventArgs) in /_/src/coverlet.collector/DataCollection/CoverletCoverageCollector.cs:line 132.
Installed product versions
Description
It was an issue with coverlet coverlet-coverage/coverlet#1390 and in version 3.2.0 it is solved
I see that you have dependency on it's previous version and looks like simple update will solve issue with FineCodeCoverage, because now I'm getting same error in Visual Studio, while during CI/CD all works fine
Steps to recreate
Current behavior
Tests run successfully while FineCodeCoverage empty and shows error in logs
Expected behavior
Tests run successfully and FineCodeCoverage shows coverage report
Side Notes
I think that we just need to update coverlet.collector lib to latest version (now it is 3.2.0) and everything will be solved.
The text was updated successfully, but these errors were encountered: