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
I can't get the coverage.coverture.xml file because of this exception error
I'm using this command:
dotnet test -c Release --collect:"XPlat Code Coverage"
And get this error message:
Data collector 'XPlat code coverage' message: Coverlet.Collector.Utilities.CoverletDataCollectorException: CoverletCoverageDataCollector: Failed to get coverage report
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Coverlet.Core.Reporters.CoberturaReporter.Report(CoverageResult result)
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport(CoverageResult coverageResult)
--- End of inner exception stack trace ---
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport(CoverageResult coverageResult)
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport()
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.OnSessionEnd(Object sender, SessionEndEventArgs e).
.NET configuration:
* coverlet.collector v6.0.2
* .NET 6.0
* Windows 11 Pro x64
* Also reproducible on azure devops pipeline
Any idea?
Thanks.
The text was updated successfully, but these errors were encountered:
I can't get the coverage.coverture.xml file because of this exception error
I'm using this command:
dotnet test -c Release --collect:"XPlat Code Coverage"
And get this error message:
Data collector 'XPlat code coverage' message: Coverlet.Collector.Utilities.CoverletDataCollectorException: CoverletCoverageDataCollector: Failed to get coverage report
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Coverlet.Core.Reporters.CoberturaReporter.Report(CoverageResult result)
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport(CoverageResult coverageResult)
--- End of inner exception stack trace ---
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport(CoverageResult coverageResult)
at Coverlet.Collector.DataCollection.CoverageManager.GetCoverageReport()
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.OnSessionEnd(Object sender, SessionEndEventArgs e).
.NET configuration:
* coverlet.collector v6.0.2
* .NET 6.0
* Windows 11 Pro x64
* Also reproducible on azure devops pipeline
Any idea?
Thanks.
The text was updated successfully, but these errors were encountered: