diff --git a/docs/resources/SampleReports.zip b/docs/resources/SampleReports.zip index 6cae2f66..c2b1d473 100644 Binary files a/docs/resources/SampleReports.zip and b/docs/resources/SampleReports.zip differ diff --git a/docs/resources/reports/MarkdownAssembliesSummary/Summary.md b/docs/resources/reports/MarkdownAssembliesSummary/Summary.md index 64d93b62..eb3fa7de 100644 --- a/docs/resources/reports/MarkdownAssembliesSummary/Summary.md +++ b/docs/resources/reports/MarkdownAssembliesSummary/Summary.md @@ -1,6 +1,6 @@ # Summary -![Line coverage](https://img.shields.io/badge/lines-69.4%-C10909) ![Branch coverage](https://img.shields.io/badge/branches-50%-C10909) ![Method coverage](https://img.shields.io/badge/methods-66.6%-C10909) +![Line coverage](https://img.shields.io/badge/lines-69.4%25-C10909) ![Branch coverage](https://img.shields.io/badge/branches-50%25-C10909) ![Method coverage](https://img.shields.io/badge/methods-66.6%25-C10909) |**Assembly**|**Line coverage**|**Branch coverage**|**Method coverage**| |:---|---:|---:|---:| diff --git a/src/Readme.txt b/src/Readme.txt index fa6bc086..11bbd816 100644 --- a/src/Readme.txt +++ b/src/Readme.txt @@ -70,6 +70,7 @@ CHANGELOG 5.4.2.0 * Fix: #700 Fixed handling of .netconfig files (sourceDirectories, reportTypes, plugins, assemblyFilters, etc.) + * Fix: #719 Fixed badges in MarkdownAssembliesSummary report 5.4.1.0 diff --git a/src/ReportGenerator.Core/Reporting/Builders/LatexReportBuilder.cs b/src/ReportGenerator.Core/Reporting/Builders/LatexReportBuilder.cs index f6140bdb..5c920684 100644 --- a/src/ReportGenerator.Core/Reporting/Builders/LatexReportBuilder.cs +++ b/src/ReportGenerator.Core/Reporting/Builders/LatexReportBuilder.cs @@ -52,7 +52,7 @@ public void Dispose() } /// - /// Releases unmanaged and - optionally - managed resources + /// Releases unmanaged and - optionally - managed resources. /// /// true to release both managed and unmanaged resources; false to release only unmanaged ReportResources. protected virtual void Dispose(bool disposing) diff --git a/src/ReportGenerator.Core/Reporting/Builders/MarkdownAssembliesSummaryReportBuilder.cs b/src/ReportGenerator.Core/Reporting/Builders/MarkdownAssembliesSummaryReportBuilder.cs index c57f0ccf..5d197d16 100644 --- a/src/ReportGenerator.Core/Reporting/Builders/MarkdownAssembliesSummaryReportBuilder.cs +++ b/src/ReportGenerator.Core/Reporting/Builders/MarkdownAssembliesSummaryReportBuilder.cs @@ -96,16 +96,16 @@ public void CreateSummaryReport(SummaryResult summaryResult) reportTextWriter.WriteLine(); - reportTextWriter.Write($"![{ReportResources.Coverage}](https://img.shields.io/badge/lines-{(summaryResult.CoverageQuota.HasValue ? summaryResult.CoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%" : "-")}-{(summaryResult.CoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); + reportTextWriter.Write($"![{ReportResources.Coverage}](https://img.shields.io/badge/lines-{(summaryResult.CoverageQuota.HasValue ? summaryResult.CoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%25" : "-")}-{(summaryResult.CoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); if (summaryResult.SupportsBranchCoverage) { - reportTextWriter.Write($" ![{ReportResources.BranchCoverage}](https://img.shields.io/badge/branches-{(summaryResult.BranchCoverageQuota.HasValue ? summaryResult.BranchCoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%" : "-")}-{(summaryResult.BranchCoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); + reportTextWriter.Write($" ![{ReportResources.BranchCoverage}](https://img.shields.io/badge/branches-{(summaryResult.BranchCoverageQuota.HasValue ? summaryResult.BranchCoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%25" : "-")}-{(summaryResult.BranchCoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); } if (proVersion) { - reportTextWriter.Write($" ![{ReportResources.CodeElementCoverageQuota}](https://img.shields.io/badge/methods-{(summaryResult.CodeElementCoverageQuota.HasValue ? summaryResult.CodeElementCoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%" : "-")}-{(summaryResult.CodeElementCoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); + reportTextWriter.Write($" ![{ReportResources.CodeElementCoverageQuota}](https://img.shields.io/badge/methods-{(summaryResult.CodeElementCoverageQuota.HasValue ? summaryResult.CodeElementCoverageQuota.Value.ToString(CultureInfo.InvariantCulture) + "%25" : "-")}-{(summaryResult.CodeElementCoverageQuota.GetValueOrDefault() < 80 ? "C10909" : "0AAD0A")})"); } reportTextWriter.WriteLine();