Skip to content

Commit 6c69000

Browse files
committed
#602: HtmlSummary and Html_BlueRed_Summary report types now also create an index.html file
1 parent 2ddf1ee commit 6c69000

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/Readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ CHANGELOG
7171

7272
* Fix: Exclude empty modules/assemblies from reports
7373
* Fix: Fix sort direction triangles (contributed by @YuriyDurov)
74+
* Fix: #602: HtmlSummary and Html_BlueRed_Summary report types now also create an index.html file
7475

7576
5.3.6.0
7677

src/ReportGenerator.Core/Reporting/Builders/HtmlBlueRedSummaryReportBuilder.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ public override void CreateSummaryReport(SummaryResult summaryResult)
4848
sourcePath,
4949
Path.Combine(targetDirectory, "summary.htm"),
5050
true);
51+
52+
string targetFile = Path.Combine(targetDirectory, "index.html");
53+
54+
if (!File.Exists(targetFile))
55+
{
56+
File.Copy(
57+
sourcePath,
58+
targetFile,
59+
true);
60+
}
5161
}
5262
}
5363
}

src/ReportGenerator.Core/Reporting/Builders/HtmlSummaryReportBuilder.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ public override void CreateSummaryReport(SummaryResult summaryResult)
4848
sourcePath,
4949
Path.Combine(targetDirectory, "summary.htm"),
5050
true);
51+
52+
string targetFile = Path.Combine(targetDirectory, "index.html");
53+
54+
if (!File.Exists(targetFile))
55+
{
56+
File.Copy(
57+
sourcePath,
58+
targetFile,
59+
true);
60+
}
5161
}
5262
}
5363
}

0 commit comments

Comments
 (0)