Skip to content

Commit

Permalink
#596: Fixed issue with reading historic reports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Mar 9, 2023
1 parent c1a5e3f commit f1648e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file modified docs/resources/SampleReports.zip
Binary file not shown.
1 change: 1 addition & 0 deletions src/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ CHANGELOG
5.1.19.0

* New: #595: Added new report type 'Html_BlueRed' to improve red-green colorblind accessibility
* Fix: #596: Fixed issue with reading historic reports

5.1.18.0

Expand Down
8 changes: 7 additions & 1 deletion src/ReportGenerator.Core/Reporting/History/HistoryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ internal void ApplyHistoricCoverage(IEnumerable<Assembly> assemblies, List<Histo
return;
}

var classes = assemblies.SelectMany(t => t.Classes).ToDictionary(k => this.GetFullClassName(k.Assembly.Name, k.Name), v => v);
var classes = new Dictionary<string, Class>();

foreach (var item in assemblies.SelectMany(t => t.Classes))
{
classes[this.GetFullClassName(item.Assembly.Name, item.Name)] = item;
}

Parallel.ForEach(
files,
new ParallelOptions { MaxDegreeOfParallelism = this.numberOfReportsParsedInParallel },
Expand Down

0 comments on commit f1648e0

Please sign in to comment.